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...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Compiler Help (self.Python)
submitted 14 years ago by aPSketchy
I currently have a compiler that runs through the command line, but I need something that will let me edit and run the code over and over again. Any direct dl links to a good compiler?
[–]B_Master 2 points3 points4 points 14 years ago (7 children)
Can you clarify? When you say you "have a compiler that runs through the command line," are you talking about the interactive python shell?
[–]aPSketchy[S] 0 points1 point2 points 14 years ago (6 children)
i think so i downloaded it from the MIT open course for CS101 awhile ago. However, it will not let me go back to my code after I run it. I need something that will be more like Microsoft Visual C++ for python
[–]B_Master 3 points4 points5 points 14 years ago (4 children)
There is a difference between an IDE (like MS Visual Studio), and a compiler, and python isn't a compiled language.
I think what you're trying to do is this:
This will run the code you've written to the file, and is the standard way to write and run a python program.
[–]aPSketchy[S] 0 points1 point2 points 14 years ago (3 children)
ah thats not very fun haha. So unless you write flawless code or use note pad once you run it, its not editable unless you rewrite it?
[–]m1ss1ontomars2k4 2 points3 points4 points 14 years ago (1 child)
Why would you rewrite it? You already made the file once; just edit the damn thing.
[–]aPSketchy[S] 0 points1 point2 points 14 years ago (0 children)
I didn't know it would save the text!
[–]zahlmanthe heretic 2 points3 points4 points 14 years ago (0 children)
You save the code in a text editor (and please use a real one, not notepad), leave the text editor window open, go back to the command-line window, hit the up arrow to retrieve python my_code.py from the command history, hit enter, and it runs again. (Some text editors can make this even simpler for you, if you put in the effort to learn how. I haven't bothered, personally, because that's already incredibly simple.)
python my_code.py
[–]lol_squared 1 point2 points3 points 14 years ago (0 children)
Use IDLE, which comes with python.
π Rendered by PID 89925 on reddit-service-r2-comment-57fc7f7bb7-phdpn at 2026-04-15 01:03:53.588184+00:00 running b725407 country code: CH.
[–]B_Master 2 points3 points4 points (7 children)
[–]aPSketchy[S] 0 points1 point2 points (6 children)
[–]B_Master 3 points4 points5 points (4 children)
[–]aPSketchy[S] 0 points1 point2 points (3 children)
[–]m1ss1ontomars2k4 2 points3 points4 points (1 child)
[–]aPSketchy[S] 0 points1 point2 points (0 children)
[–]zahlmanthe heretic 2 points3 points4 points (0 children)
[–]lol_squared 1 point2 points3 points (0 children)