What is >>> used in code in tutorials? when tried it in console >>>print"hey" it gave me an error | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

What is >>> used in code in tutorials? when tried it in console >>>print"hey" it gave me an error

7th Jul 2017, 11:50 AM
Shivam Marmat
Shivam Marmat - avatar
3 Answers
+ 4
that is a prompt sign of the python Console.. it won't work in the code Playground because it is an IDE.. not a console..
7th Jul 2017, 11:57 AM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 3
first >>> is not a part of your code, you don't write it. and if you don't use python 2 but 3 you cannot write print "Hello!" but you should write print("Hello!") since print is a function for python now.
7th Jul 2017, 12:07 PM
Yüsein Ali
Yüsein Ali - avatar
+ 1
try typing print("hey") instead of typing >>>print"hey"
7th Jul 2017, 1:10 PM
Shikha Sinha
Shikha Sinha - avatar