Currency Converter Program in Python

Currency Converter Program in Python


Code:

currency = str ( input ("enter currency " ))

amount = int ( input (" enter amount to covert in pkr "))

if ( currency == "$" ):
    print(amount* 158)

elif( currency == "£" ):
    print( amount * 197)

elif ( currency == "€" ):
    print ( amount * 177 )

else:
    print("you entered wrong currency symbol")








Output:


enter currency $
enter amount to covert in pkr 10
1580
>>> 


Video Tutorial:







Post a Comment

Previous Post Next Post