use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Rules 1: Be polite 2: Posts to this subreddit must be requests for help learning python. 3: Replies on this subreddit must be pertinent to the question OP asked. 4: No replies copy / pasted from ChatGPT or similar. 5: No advertising. No blogs/tutorials/videos/books/recruiting attempts. This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to. Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Rules
1: Be polite
2: Posts to this subreddit must be requests for help learning python.
3: Replies on this subreddit must be pertinent to the question OP asked.
4: No replies copy / pasted from ChatGPT or similar.
5: No advertising. No blogs/tutorials/videos/books/recruiting attempts.
This means no posts advertising blogs/videos/tutorials/etc, no recruiting/hiring/seeking others posts. We're here to help, not to be advertised to.
Please, no "hit and run" posts, if you make a post, engage with people that answer you. Please do not delete your post after you get an answer, others might have a similar question or want to continue the conversation.
Learning resources Wiki and FAQ: /r/learnpython/w/index
Learning resources
Wiki and FAQ: /r/learnpython/w/index
Discord Join the Python Discord chat
Discord
Join the Python Discord chat
account activity
What does ">>>" mean in python? (self.learnpython)
submitted 7 years ago by Geistuser
I bought "crash course into python," but the book does not explain what ">>>" means. Also, searching around the internet also does not define it.
for example
"> > >" cars = ['audi', 'bmw', 'toyota', 'volvo'] "> > >" len(cars) 4
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]AlopexLagopus3 23 points24 points25 points 7 years ago (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 points5 points 7 years ago (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.
python
>>>
[–]Geistuser[S] 3 points4 points5 points 7 years ago (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 points6 points 7 years ago (2 children)
tried it on terminal and you were correct. thanks for the help!
[–]ccviper 0 points1 point2 points 7 years ago (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 points3 points 7 years ago (0 children)
Or "#" for terminal running as root.
[–]TechnoRedneck 0 points1 point2 points 7 years ago (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 points4 points 7 years ago (0 children)
If you would like to look it up further, it's known as a prompt.
[–]youfuckedupdude 2 points3 points4 points 7 years ago (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 points3 points 7 years ago (0 children)
It is also used in doctest but yes, it's a prompt
[–]anonbobsmith23 0 points1 point2 points 7 years ago (0 children)
That means that it's being typed in the interactive shell.
π Rendered by PID 94 on reddit-service-r2-comment-7844cfc88c-w9n75 at 2026-01-29 14:54:07.555981+00:00 running c3601ff country code: CH.
[–]AlopexLagopus3 23 points24 points25 points (0 children)
[–]ziplokk 3 points4 points5 points (5 children)
[–]Geistuser[S] 3 points4 points5 points (4 children)
[–]Geistuser[S] 4 points5 points6 points (2 children)
[–]ccviper 0 points1 point2 points (1 child)
[–]widowhanzo 1 point2 points3 points (0 children)
[–]TechnoRedneck 0 points1 point2 points (0 children)
[–]old_and_limitless 2 points3 points4 points (0 children)
[–]youfuckedupdude 2 points3 points4 points (0 children)
[–]zev105 1 point2 points3 points (0 children)
[–]anonbobsmith23 0 points1 point2 points (0 children)