In pyton when to use (print) and (>>>) please tell or we have too use both ?????? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

In pyton when to use (print) and (>>>) please tell or we have too use both ??????

25th Mar 2018, 7:54 PM
Akash Hegde
Akash  Hegde - avatar
2 Answers
+ 1
Use print (2.x) or print() (3.x) when you want to display text on screen. >>> is used in the python executable so it stands out from output.
25th Mar 2018, 8:01 PM
TurtleShell
TurtleShell - avatar
0
while using idle you will use <<< and while using python script file use print
13th Jul 2018, 11:43 AM
Rinzler Nokwal
Rinzler Nokwal - avatar