Making a new variable from multiplying another -


here section of code i'm having trouble with:

def gbp(): gbpto = int(input("which currency converting into?")) if gbpto == "1":     print("you converting pounds sterling pounds sterling... there no conversion needed!") elif gpbto == "2":     num = float(input("please type in amount of pounds sterling wish convert dollars")     calc = num * 1.55     calc = round(calc, 2)     print(num + " pounds sterling in dollars $", calc) 

when run it, comes syntax error, highlighting calc. should do?

one parenthesis missing, 1 closes float().

... num = float(input("please type in amount of pounds sterling wish convert dollars")) ... 

Comments

Popular posts from this blog

c# - Better 64-bit byte array hash -

webrtc - Which ICE candidate am I using and why? -

php - Zend Framework / Skeleton-Application / Composer install issue -