>>> and Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

>>> and Python

So in the lessons and some comments I’ve seen >>> a good bit. For instance, >>>print(‘Hello World’). Im wondering what is it’s meaning? I’m just starting with Python and was confused as to why it was there but it seemed like the lessons I’ve done so far didn’t cover it. Any help is greatly appreciated. Thanks!

31st Oct 2017, 2:14 AM
Kaitlin
1 Answer
+ 8
When you run python shell on pc, as you write a line and press enter it displays output of first line in the next line. So here start of every line to be compiled and start line of output is marked by >>>. Don't worry this is useless and putted by program itself.
31st Oct 2017, 3:50 AM
Lakshay
Lakshay - avatar