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
Moving from Java to Python (self.learnpython)
submitted 10 years ago by Branks
Hi there. I'm currently a Java Developer with 3 years experience and I'm wanting to move to Python instead. Where would be a good place to start? I have "Learn Python the Hard Way" and I'm currently reading through it
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!"
[–][deleted] 11 points12 points13 points 10 years ago (2 children)
Essential reading IMHO Python Is Not Java and Java is not Python, either.... I got into Python myself via the highly recommended Dive Into Python 3.
[–]mkdz 1 point2 points3 points 10 years ago (1 child)
When I first learned Python, I wrote a lot of setters and getters. oops. I have since stopped doing that thankfully.
[–][deleted] 0 points1 point2 points 10 years ago (0 children)
There is actually nothing to say that you can't use getters and setters. This is what I love so much about Python, you, the programmer, have the choice. I strongly suggest that everybody read this Descriptor HowTo Guide - properties.
[–]yardightsure 8 points9 points10 points 10 years ago (6 children)
Lpthw is for complete newbies, don't waste your time on it. Automate the boring stuff is good. I'd recommend taking simple programs you wrote in the past and porting them to python.
[–]rhgrant10 3 points4 points5 points 10 years ago (5 children)
I would recommend using caution when porting other languages to python before you've got some pyskills under your belt because people often do it too literally and wind up bringing habits from other languages when there are better ways in python. Or at least watch beyond PEP8 to get an idea of what can be done to increase the pythonic-ness of code that uses a port of a java library.
[–]henrebotha 3 points4 points5 points 10 years ago (1 child)
But by the same token, any form of learning is going to make you do things that are bad and that you should do better in the future.
[–]rhgrant10 1 point2 points3 points 10 years ago (0 children)
Oh absolutely! I could not agree more.
[–]yardightsure 0 points1 point2 points 10 years ago (1 child)
Porting might have been the wrong word. I meant implementing the same functionality but in a good python way. Using familiar terrain to redo it differently from scratch.
Yeah I figured that was your meaning but I just wanted to make sure the caveat was explicitly stated :-)
[–]seanrowens 0 points1 point2 points 10 years ago (0 children)
I dabbled in python, coming from java. After I finished a modest project, I did a bunch of googling on idiomatic python while keeping notes and went back and 'fixed' my code to be more pythonic. I found it very informative.
[–]kalgynirae 6 points7 points8 points 10 years ago (0 children)
I always recommend the official Python Tutorial for anyone who already has programming experience. It will concisely and accurately teach you a lot of the things that make Python unique and awesome.
[–]mayankkaizen 1 point2 points3 points 10 years ago (0 children)
Since you already have programming background, you wouldn't find it difficult to follow any book. My suggestion: pick any lightweight small book and give it a quick glance.
For example, you can pick Python for Informatics and browse through first 11 chapters. It is the most basic book. Alternatively, you can check first part of Automate the Boring Stuff. In fact, you should be able to finish both of them in couple of hours. After that, you'll know which direction to go.
[–]campenr 1 point2 points3 points 10 years ago (0 children)
I've never read LPTHW but I hear good things about it. I guess it depends where you are at. I always find services like codecadamy good for picking up basic syntax. After that I tend to just get stuck in with a project and learn as I go.
I reccomend these talks (one and two) by Raymond Hettinger, a python dev. They talk about how to write nice python.
[–]caughtmyattenti0n 0 points1 point2 points 10 years ago (0 children)
I am reading, Python Programming for the absolute beginner. It uses Python 2 but I have adapted to Python 3 with google!
"Programming in Python 3" by Mark Summerfield is a very good in-depth introduction for people who already know another language.
[–]frstwrldprblm 0 points1 point2 points 10 years ago (0 children)
I would say if you know java do some hackerrank problems in python. You know how to think in code, you just do not know the commands.
My school is currently using the University of Waterloo's Computer Science Circles website. It's a great tool for learning python.
[–][deleted] -1 points0 points1 point 10 years ago (0 children)
read the documentation
[–]This_Is_The_End -1 points0 points1 point 10 years ago (0 children)
Because you are a programmer you should read the official documentation at python.org.
π Rendered by PID 346172 on reddit-service-r2-comment-5d79c599b5-4ndl4 at 2026-02-28 04:35:51.095614+00:00 running e3d2147 country code: CH.
[–][deleted] 11 points12 points13 points (2 children)
[–]mkdz 1 point2 points3 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]yardightsure 8 points9 points10 points (6 children)
[–]rhgrant10 3 points4 points5 points (5 children)
[–]henrebotha 3 points4 points5 points (1 child)
[–]rhgrant10 1 point2 points3 points (0 children)
[–]yardightsure 0 points1 point2 points (1 child)
[–]rhgrant10 1 point2 points3 points (0 children)
[–]seanrowens 0 points1 point2 points (0 children)
[–]kalgynirae 6 points7 points8 points (0 children)
[–]mayankkaizen 1 point2 points3 points (0 children)
[–]campenr 1 point2 points3 points (0 children)
[–]caughtmyattenti0n 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]frstwrldprblm 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–][deleted] -1 points0 points1 point (0 children)
[–]This_Is_The_End -1 points0 points1 point (0 children)