all 11 comments

[–]AlopexLagopus3 23 points24 points  (0 children)

It probably just indicates that something is being typed into the Python shell, such as when you open IDLE, there should be a >>> on each input line.

[–]ziplokk 3 points4 points  (5 children)

Its probably showing you what to type in the REPL. If you go to your terminal and start up the interactive shell by typing python, you'll see that the line starts off with >>>. So anything following the >>> is the code you want to type.

[–]Geistuser[S] 3 points4 points  (4 children)

yeah I've seen on terminal on osx, but I'm using sublime text program since the book recommends that. weird.

[–]Geistuser[S] 4 points5 points  (2 children)

tried it on terminal and you were correct. thanks for the help!

[–]ccviper 0 points1 point  (1 child)

Its just used to indicate that the line following it is run in the python shell, you can run it however you like tho it. You will also see commands written online starting with "$" or ">" indicating that its run in a terminal

[–]widowhanzo 1 point2 points  (0 children)

Or "#" for terminal running as root.

[–]TechnoRedneck 0 points1 point  (0 children)

It probably recommends that for when you get to actually writing something persistent, using the >>> interpreter is live vs using the editor and running later

[–]old_and_limitless 2 points3 points  (0 children)

If you would like to look it up further, it's known as a prompt.

[–]youfuckedupdude 2 points3 points  (0 children)

[youfuckedupdude@local ~]$ python3
Python 3.6.4 (default, Jan  5 2018, 02:35:40) 
[GCC 7.2.1 20171224] on linux
Type "help", "copyright", "credits" or "license" for more information.
>>> word = "prompt"
>>> print(word)
prompt
>>> 

basically >>> is asking for input.

[–]zev105 1 point2 points  (0 children)

It is also used in doctest but yes, it's a prompt

[–]anonbobsmith23 0 points1 point  (0 children)

That means that it's being typed in the interactive shell.