print (userChoice) # for Python 3
On Saturday, May 6, 2017 at 4:37:46 PM UTC-4, Anwar Goulouh wrote:
>
> 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
>
>
--
You received this message because you are subscribed to the Google Groups
"spyder" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/spyderlib.
For more options, visit https://groups.google.com/d/optout.