Python Prompt Symbol ( >>> ) | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Python Prompt Symbol ( >>> )

Hello, i just entered the Python course, and i'm wondering about this. What's the function of the prompt symbol (>>>) in Python? I've tried to put it in the code playground, but every time it output a syntax error, instead if i write the code without it, the code runs smoothly. So what is the function of it?

25th Jan 2018, 2:30 PM
Andrea Romani
3 Answers
+ 1
you should not add it in your code. it is just thecommand line prompt on a console, equivalent to "c:" on windows or '
#x27; in Linux at the beginning of a new command line the console.
25th Jan 2018, 3:22 PM
ifl
ifl - avatar
25th Jan 2018, 4:07 PM
Hatsy Rei
Hatsy Rei - avatar
0
i see thank you
25th Jan 2018, 3:23 PM
Andrea Romani