Python currency conversion program for beginners

preview_player
Показать описание
#Program for convering pound into Euro

print("Converting Pound into Euro")

print() # This just to print empty place for neat looking
pound = int(input("Please enter amount of money you would like to convert into euro: "))
exchangeRate = float(input("Please enter the current pound-euro exchange rate: "))
print()

euro = pound//exchangeRate #This for caluclation
print("You will receive {0} Euros for your holiday.".format(euro))
Рекомендации по теме
Комментарии
Автор

You have helped me so much, ive been trying to convert multiple currencies into eachother and you finally helped me with the .format stuff :D thx <3

Mooshimoca
Автор

thank you very much it is really help full.
god bless you

karim-hunq
welcome to shbcf.ru