Python relevant question, 'bout promt symbol. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

Python relevant question, 'bout promt symbol.

When I'm giving output by using print(), the output is okay!, But when I put prompt symbol >>> before print (as shown in this app) then I'm getting an error, why so?

29th Jun 2019, 4:44 AM
TAVISH
TAVISH - avatar
3 Answers
+ 5
Intepreter is a programming tool, that allows single statements to be executed once. You can use that to test single statements. Because intepreter uses: >>> in start of each line, many tutorials use these in the coding examples. It is a common beginner mistake to use ">>>" in the Python playground.
29th Jun 2019, 8:25 AM
Seb TheS
Seb TheS - avatar
+ 4
>>> symbol used to indicate that the syntax can be run directly in python interpreter.
29th Jun 2019, 5:32 AM
Taste
Taste - avatar
+ 2
Thanks buddies for your help!
30th Jun 2019, 9:14 AM
TAVISH
TAVISH - avatar