basic question

33 views
Skip to first unread message

Anwar Goulouh

unread,
May 6, 2017, 4:37:46 PM5/6/17
to spyder
hi having error missing parenthesis in call to print how to fix please???

#CurrencyConverter

#Description - Converts NZD to JPY or back

# 1 NZD = JPY 78.00
# 1 JPY = NZD 0.01
def currencyConvert():  
    #Find out what  the user wants to convert 1)NZD - > JPY or 2)JPY - > NZD
    #Store answer in variable
    userChoice = raw_input ("What do you want to convert? 1) NZD to JPY or 2) JPY to NZD")
    print userChoice
    #Check and see what the user typed
    
    #If the user typed 1 
        #do something 
        #prompt the user the amount ouf NZD they want to convert
        #store what the user typed into a variable
        #JPY would = NZD amount * 78.00
        #Output amount to user
    
    #If the user typed 2 
        #do something 
        #prompt the user the amount ouf JPY they want to convert
        #store what the user typed into a variable
        #NZD would = JPY amount * 0.01
        #Output amount to user
    
    #If the user type anything else
        #do something - error handling
        #tell what they did wrong
        #run the scripts again

Marty DiStasio

unread,
May 7, 2017, 1:12:40 PM5/7/17
to spyder
 print (userChoice) # for Python 3 
Reply all
Reply to author
Forward
0 new messages