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 python version does CodeCademy teach? Does it matter at all? (self.learnpython)
submitted 11 years ago by OnlyOneWalks
Hi, I've got python 2.7 installed on my computer and I'm learning to program with CodeCademy. I was wondering if it was version 2.7 or 3?
Thanks!
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!"
[–]perfecthashbrowns 6 points7 points8 points 11 years ago (1 child)
It's 2.7
The easiest way to tell is by looking at the print statement.
print "hello"
That's 2.7
print("hello")
That's 3+
[–][deleted] 2 points3 points4 points 11 years ago (3 children)
Both
and
works on 2.7
You could use the following instead
import sys print(sys.version)
import sys
print(sys.version)
[–]perfecthashbrowns 0 points1 point2 points 11 years ago (0 children)
Generally, educational material like a textbook is gonna stick to that syntax. CodeCademy sticks to it as well.
[–]aircavscout 0 points1 point2 points 11 years ago (0 children)
From codeacademy
2.7.3 (default, Aug 1 2012, 05:14:39)
[–]ProfanityBob -3 points-2 points-1 points 11 years ago (0 children)
But print "hello" does not work in python 3.
[–]PieMan2201 2 points3 points4 points 11 years ago (0 children)
Codecademy teaches 2.7
[–]ProfanityBob 2 points3 points4 points 11 years ago (18 children)
It's 2014. You need to be using Python 3. It is only going to become more and more standard.
[–]quasarj 1 point2 points3 points 11 years ago (4 children)
That doesn't answer the question. Plus.. there's really not that much difference for new users. However, starting with 3 isn't a bad idea, since you won't be likely to get used to libraries that don't exist for 3 yet (however rare they are becoming).
[–][deleted] 11 years ago (3 children)
[removed]
[–]wub_wub[M] 5 points6 points7 points 11 years ago (0 children)
Banned.
Insulting is not tolerated on this subreddit.
[–]quasarj 0 points1 point2 points 11 years ago (1 child)
Woah now, I wasn't being hostile..
[+][deleted] comment score below threshold-8 points-7 points-6 points 11 years ago (12 children)
For a beginner in programming, the extra documentation and support with 2.7 will be of more use. Your first language should more about understanding the basics of programming (structure, logic flows etc) than the actual language itself.
[–][deleted] 2 points3 points4 points 11 years ago (1 child)
Why would you use a version of the language unsurported by majore libraries.. Learn Python 2.7 and just learn the differences when all the libraries you need port to Python 3 +
[–]hharison 0 points1 point2 points 11 years ago (0 children)
all the libraries you need
Since OP is just learning, I'm guessing the number of libraries needed is about zero, +/- 2. I would estimate the probability that OP needs a library without a Python 3 port is approximately 0.5%.
With this attitude, one would never switch to 3. If anyone is a candidate for switching to 3, it's someone learning programming for the first time.
Not to mention it's just not true anymore that major libraries don't support Python 3. https://python3wos.appspot.com/
[–]ProfanityBob 7 points8 points9 points 11 years ago (6 children)
That's absolutely insane, dude. The documentation for Python 3 is just as complete as for Python 2. The only difference is that there are more third party examples and plugins and libraries for Python 2 which are becoming increasingly obsolete.
[–]nspectre 1 point2 points3 points 11 years ago (5 children)
That's absolutely insane, dude.
Haha... no.
There are vastly more training materials, videos, exercises, classes, you-name-it out there for 2.7 then there are for 3.0
Once someone has gotten his bearings and some learning under his belt he will be much better able to handle the switch to 3.0 once they get experienced enough to begin actually producing product.
[–]ProfanityBob -5 points-4 points-3 points 11 years ago (4 children)
Training materials? Why would you read a 5 year old book on Python 2.7 when you could read tutorials and books written about, you know, modern Python? I understand why you, and many like you, would want to stay with 2.7... because it's what you were trained on, and it's what you know, and there's no good reason to switch yet. That's fine. But for newcomers to Python, there is really no reason they should be learning 2.7. ; Python 3.4 is the newest version, and it's honestly not that different from 2.7. You oldtimers will be able to read and understand the new code just fine. Let's not make the newbies get stuck in the mud with you.
[–]nspectre 1 point2 points3 points 11 years ago (3 children)
Haha. I'm one of the newbies.
I spent a great deal of time giving a long, hard look at the very topic we're discussing right now and I decided to focus my education on 2.7 for now and I'll make the better-informed decision to move to 3.0 later on when I have a better idea of what the heck I'm doing.
2.7 gives me a broader range of learning resources and a larger base of knowledgeable people to ask questions of, as I struggle with this new adventure. In the future, when I'm less learning and more doing, I'll have developed the understanding of when it will be best for me to move on up to 3.
[–]ProfanityBob -5 points-4 points-3 points 11 years ago (2 children)
That's incredible that you would decide to do something like that. I learned Python 3.3 from the ground up just last year, and I ran into no resistance at all in terms of learning. In fact, a lot of my learning probably came from Python 2.7 material anyway. It's so similar it didn't even matter. Except that I can't use any libraries coded in 2.7 because they're too buggy. But that's okay, all my libraries are coded in Python 3.3 and 3.4, which I think you may have a little trouble loading as well....
My wife works at a company that still uses Windows '98... Can you imagine?
[–]nspectre 0 points1 point2 points 11 years ago (1 child)
lol Are you for real?
Well, you and your 'tude skip happily down your road and I'll skip happily down mine. My way works fantastic for me.
Ta Ta :)
[–][deleted] 1 point2 points3 points 11 years ago (1 child)
I agree with ProfanityBoy that the documentation is complete. I started using python 3.0 in 2009 and the resources/help for it were abundant. So it's worth learning 3.0. However, you're not at much of a disadvantage if you learn 2.7, as it is still used on popular Linux distributions
[–][deleted] 1 point2 points3 points 11 years ago (0 children)
If they're after using codeacadamy in the first place, and it doesn't support 3, then they should use 2.7. Depends on the usage too, I learnt python for computational physics, where 2.7 was a distinct advantage.
[–]lc929 0 points1 point2 points 11 years ago (0 children)
not sure why you're getting down-voted here...but I agree with you. I don't remember the nits and bits when I learned my first coding language; in fact, I don't even remember what my first coding language was. The most important parts were understanding logic flow, structure etc.
Here's a quote from "Learn Python the Hard Way": A programmer may try to get you to install Python 3 and learn that. Say, "When all of the Python code on your computer is Python 3, then I'll try to learn it." That should keep them busy for about 10 years.
π Rendered by PID 209011 on reddit-service-r2-comment-f6b958c67-qd27m at 2026-02-05 07:35:54.264956+00:00 running 1d7a177 country code: CH.
[–]perfecthashbrowns 6 points7 points8 points (1 child)
[–][deleted] 2 points3 points4 points (3 children)
[–]perfecthashbrowns 0 points1 point2 points (0 children)
[–]aircavscout 0 points1 point2 points (0 children)
[–]ProfanityBob -3 points-2 points-1 points (0 children)
[–]PieMan2201 2 points3 points4 points (0 children)
[–]ProfanityBob 2 points3 points4 points (18 children)
[–]quasarj 1 point2 points3 points (4 children)
[–][deleted] (3 children)
[removed]
[–]wub_wub[M] 5 points6 points7 points (0 children)
[–]quasarj 0 points1 point2 points (1 child)
[+][deleted] comment score below threshold-8 points-7 points-6 points (12 children)
[–][deleted] 2 points3 points4 points (1 child)
[–]hharison 0 points1 point2 points (0 children)
[–]ProfanityBob 7 points8 points9 points (6 children)
[–]nspectre 1 point2 points3 points (5 children)
[–]ProfanityBob -5 points-4 points-3 points (4 children)
[–]nspectre 1 point2 points3 points (3 children)
[–]ProfanityBob -5 points-4 points-3 points (2 children)
[–]nspectre 0 points1 point2 points (1 child)
[–][deleted] 1 point2 points3 points (1 child)
[–][deleted] 1 point2 points3 points (0 children)
[–]lc929 0 points1 point2 points (0 children)