cost1 = input ('Cost of your thing? ')
cost1 = float(cost1)
Country1 = input ('Your country? ')
Place1 = input ('Title of your state/city? ')
if Country1.upper() != 'CANADA':
print('You need no to pay addition')
print("${0:.2f}".format(cost1))
elif (Country1.upper() == 'CANADA' and (Place1.upper() == 'ONTARIO' or Place1.upper() == 'NEW BRUNSWICK' or Place1.upper() == 'NOVA SCOTIA')):
print ('Your charge is 13%')
cost1 = (((cost1 / 100) * 13) + cost1)
print("${0:.2f}".format(cost1))
elif (Country1.upper() == 'CANADA' and Place1.upper() == 'ALBERTA') :
print ('Your charge is 5 + 6%')
cost1 = ((((cost1 / 100) * 5) + (cost1 / 100) * 6) + cost1)
print("${0:.2f}".format(cost1))
elif (Country1.upper() == 'CANADA' and (Place1.upper() != 'ONTARIO' or Place1.upper() != 'NEW BRUNSWICK' or Place1.upper() != 'NOVA SCOTIA' or Place1.upper() != 'ALBERTA')):
print('Your charge is 11%')
cost1 = (((cost1 / 100) * 11) + cost1)
print("${0:.2f}".format(cost1))
Cost of your thing? 30
Your country? Canada
Traceback (most recent call last):
File "без имени.py", line 3, in <module>
Country1 = input ('Your country? ')
File "<string>", line 1, in <module>
NameError: name 'Canada' is not defined
------------------
(program exited with code: 1)
Press return to continue