amount = int(input("How many switches? "))
if amount == 0:
print("There are no outcomes for 0 switches")
else:
print("With {} switch(es), there are {} outcomes.".format(amount, 2**amount))
6.5m questions
8.6m answers