Ask your own question, for FREE!
Computer Science 23 Online
OpenStudy (123456789):

could you please tell me what is the syntax error in the print statement that is below the while statement?

OpenStudy (123456789):

I am using python btw

OpenStudy (inkyvoyd):

If it is python 3.2 you need to use print as a function print("hello world!") or print('hello world!')

OpenStudy (inkyvoyd):

@123456789 , what version are you using (please be fast if you want me to answer; otherwise tag someone else - I have to go to bed lol)

OpenStudy (123456789):

i am using version 2.5.4

OpenStudy (inkyvoyd):

Can you try rerunning the program in the interpreter with my corrections? If it doesn't work, I'll look into it some more tomorrow...

OpenStudy (123456789):

ok thanks!

OpenStudy (inkyvoyd):

(I have to go now, but feel free to ask in math chat for people to help you in your question - just explain the situation)

OpenStudy (123456789):

ok i appreciate the help

OpenStudy (inkyvoyd):

No problem :)

OpenStudy (asnaseer):

looks like you are using Python 3 print syntax in a Python 2 program. Replace: print(i,end= '') with: print i,

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!