[Tutor] need help how to run it on python 3.3

Mark Lawrence breamoreboy at yahoo.co.uk
Wed Jan 8 21:42:11 CET 2014


On 08/01/2014 18:19, S Tareq wrote:
> need help how to run it on python 3.3, or change it to python 3.3 when i
> run it says syntax error if i run it on python 2.7 it works.
>

>      if(counter%2==0):

Please remove those unneeded brackets, this is a Python list, not C :)

>          print "Please Select the number which is the correct definition
> of the word:" ,keywords[word]

Please add the needed brackets, print is a function in Python 3, not a 
statement.

-- 
My fellow Pythonistas, ask not what our language can do for you, ask 
what you can do for our language.

Mark Lawrence



More information about the Tutor mailing list