0

In print your name in symbol,i run error,why?

when i copy the code to run ,which reveals some errors.why?and i use the python version is python 2.7. Thanks. https://code.sololearn.com/choPH1o6IcnY/#py

13th Mar 2017, 3:05 AM
ngxin
4 Réponses
0
Python 3 print's syntax is different from python2, py3: print("hello world") py2: print "hello world"
13th Mar 2017, 3:41 AM
Tony Loa
Tony  Loa - avatar
0
Thank you @Tony Loa,I have tried to revised in your way. but,it has the same error
13th Mar 2017, 3:54 AM
ngxin
0
I tried to convert this code to py2 and it was very easy. Change all built-in "print()" to "print ' '" , but don't touch auther's function "print_text_in ..." and change "input()" to "raw_input()", should work!
13th Mar 2017, 4:12 AM
Tony Loa
Tony  Loa - avatar
0
I have solved it, Thank you very much!
13th Mar 2017, 7:01 AM
ngxin