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))
8.6m questions
11.3m answers