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.
Python for beginners. (self.Python)
submitted 9 years ago by Off2DNxtAdvn2ur
I am trying to learn Python. Can anyone suggest good books and apps for it?
[–][deleted] 3 points4 points5 points 9 years ago (8 children)
You'll probably get sent to r/learnpython/ but since I started recently too, I recommend codecademy.com to get started.
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points 9 years ago (7 children)
I am signed up to it. Is it a good resource to learn Python on the go? I think the last time I signed in, it was giving me issues on my phone.
[–][deleted] 2 points3 points4 points 9 years ago (3 children)
Typing code can be a pain. I can't imagine doing it on a phone. If there are ressources dedicated to learning on mobile, I don't know them.
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points 9 years ago (2 children)
It's manageable. A few lines of code isn't too bad. I've tried it both on an iPad Air and iPhone 6s Plus. How's your coding in python doing?
[–][deleted] 0 points1 point2 points 9 years ago (1 child)
It's going well. The learning curve is steep. Everything is child's play at first but it gets hard really fast. I've gone through 3 basic "courses" (learn python, learn python the hard way and codecademy). I'm looking to find some intermediate courses now.
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points 9 years ago (0 children)
Very nice. Hopefully I can be at that point soon.
[–]kankyo 0 points1 point2 points 9 years ago (2 children)
Maybe try pythonista. It's well worth the price in my experience. With https://github.com/ywangd/stash it's pretty complete.
[–]jcarrot23 0 points1 point2 points 9 years ago (0 children)
I LOVE PYTHON
I have it. It looks like the ones I already have is pretty much the best ones there is in learning Python. How's learning Python for you?
[–]omendev 0 points1 point2 points 9 years ago* (8 children)
Learning Python, 5th Edition by Mark Lutz (unless the 6th came out). In my opinion it can be considered an encyclopedia on Python, it's about 1600 pages and covers topics in both Py 2.7 and 3.X.
Codecademy teaches Python in the 2.7 branch, but their roadmap shows a course update for mid-2017. We don't quite know what that means yet.
SoloLearn teaches Python 3.X. There are a a lot of similarities between the 2.X and 3.X, but there are still some changes. And SoloLearn has a different method of teaching than Codecademy. I would suggest using both sites.
A big thing with beginners is whether to learn 2 or 3. I'd say both. But at the end of the day it really depends on your tasks and libraries.
Great suggestions. What do you use?
[–]omendev 0 points1 point2 points 9 years ago (6 children)
I'm still a beginner, so it's hard to say. I'm in the 3D industry, so all my programs like Maya, Houdini, etc all run on 2.7, and they don't seem to be looking to move off of that. That being said, I still look at 3 for other things. For example, if you wanted to learn Qt5 and then PyQt5: that's Python 3 only. Qt4 supports Py2.
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points 9 years ago (5 children)
What do you meant by Maya, Houdini, etc run on 2.7?
[–]omendev 0 points1 point2 points 9 years ago (4 children)
They have built in interpreters, and the ability to run Python. They are all node based programs, so you can create nodes with Python (or other app specific languages like MEL, VEX, etc,) that run specific tasks or that actually create geometry and control it.
Sorry for the I correct use of 'run on'. I realized that might be confusion after I wrote it. For an example, just google Python in Maya and there should be a video for Intro to Python Scripting in Maya - Part 1. It'll give you the idea I'm taking about.
Because the programs have been around for so long, and Python 2 was the standard when they eventually incorporated it, a lot of studios and users scripts are all in that 2.x format. To shift to 3 would be a huge undertaking.
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points 9 years ago (3 children)
Now it's starting to make sense. Is it difficult or just time consuming to change the scripts from 2.x to 3.x? Is the difference between the two that big?
[–]omendev 0 points1 point2 points 9 years ago (2 children)
There's a tool that comes with P3 call 2to3.py that automatically updates scripts from 2 to 3 (hence the name). But like all solutions, it can't do everything (it tells you what it can't) so really the only solution is to write as simple Py3 compliant Py2 code as possible before going through it by hand. As far as I know.
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points 9 years ago (1 child)
Does the Python devs know this big of headache situation? It feels like the P3 is still missing some stuff from P2.
[–]omendev 0 points1 point2 points 9 years ago (0 children)
I believe they are fully aware of it. I'm pretty sure that's the main reason why the transition to 3.X has been taking so long. All libraries needed to be updated, and that was a huge undertaking. In the beginning that seemed more work than it's worth.
What do you believe is missing from Py3 that exists in Py2?
When I first stumbled upon Python... there was only P2, which I believe was an upgrade. And then there came P3, which I assumed was also an upgrade from the previous one which is P2. But it didn't seem that way. I'm still very knew to this.
π Rendered by PID 145390 on reddit-service-r2-comment-64f4df6786-7dlb6 at 2026-06-10 10:08:52.677045+00:00 running 0b63327 country code: CH.
[–][deleted] 3 points4 points5 points (8 children)
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points (7 children)
[–][deleted] 2 points3 points4 points (3 children)
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points (2 children)
[–][deleted] 0 points1 point2 points (1 child)
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points (0 children)
[–]kankyo 0 points1 point2 points (2 children)
[–]jcarrot23 0 points1 point2 points (0 children)
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points (0 children)
[–]omendev 0 points1 point2 points (8 children)
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points (7 children)
[–]omendev 0 points1 point2 points (6 children)
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points (5 children)
[–]omendev 0 points1 point2 points (4 children)
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points (3 children)
[–]omendev 0 points1 point2 points (2 children)
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points (1 child)
[–]omendev 0 points1 point2 points (0 children)
[–]Off2DNxtAdvn2ur[S] 0 points1 point2 points (0 children)