when i type go for printing a variable, it shows me syntex error. I checked the syntex and couldn't find anything wrong. What is the problem? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

when i type go for printing a variable, it shows me syntex error. I checked the syntex and couldn't find anything wrong. What is the problem?

20th Aug 2016, 10:45 AM
Tanishka Soni
7 Answers
+ 1
the print code in python ver 3+ is different with ver 2
20th Aug 2016, 2:49 PM
Hassan gh.lominol
Hassan gh.lominol - avatar
+ 1
the code i did was for a variable. after typing print i typed the variable name in paranthesis. that is how it showed in the tutorial.
20th Aug 2016, 5:55 PM
Tanishka Soni
+ 1
"type go" was typo😅
20th Aug 2016, 5:57 PM
Tanishka Soni
0
send me your code
20th Aug 2016, 5:57 PM
Hassan gh.lominol
Hassan gh.lominol - avatar
0
you should whrite in ver 3+ simple print ("name") and in ver 2 python print "name"
20th Aug 2016, 6:03 PM
Hassan gh.lominol
Hassan gh.lominol - avatar
0
write
20th Aug 2016, 6:03 PM
Hassan gh.lominol
Hassan gh.lominol - avatar
- 1
can you post the code? what do you mean for "type go for printing"? python 2.7 has print "a string" python 3 has print("a string")
20th Aug 2016, 12:55 PM
Marco Romanin
Marco Romanin - avatar