>>> ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

>>> ?

Do we have to use >>> while writing the code or not ? And is there a space between >>> and print ?

4th Oct 2018, 8:04 AM
Hrithik Chugh
Hrithik Chugh - avatar
2 Answers
+ 2
You can run python in 2 ways: script mode and interpreter mode. In script mode, you passing a python file script and all is runned. In interpreted mode you put a statement and python will execute then python expect some input from you and it make notice you by >>> string. In practice it tell you to insert some statement in interpreter mode but its not necessaru when you write scripts
4th Oct 2018, 8:42 AM
KrOW
KrOW - avatar
0
this symbols are in python interpreter. If you use for example pycharm - no need to input it.
4th Oct 2018, 8:06 AM
Arthur P
Arthur P - avatar