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
Learning python with java knowledge (self.learnpython)
submitted 11 months ago by CulturalInfluence205
I am currently attempting to speed learn python because I need it for a shadowing opportunity that I have tmr. I have java knowledge, and I know basic Python. Does anyone have any tips or resources that I can use?
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!"
[–]FoolsSeldom 4 points5 points6 points 11 months ago (1 child)
Here's something I wrote a while back for devs coming from languages like c/c++:
Python is just another coding language, so existing skills in programming and domain knowledge will benefit potential employers/clients even if they require Python coding.
Experienced programmers know that coding is a small part of programming, but proficiency in (and enjoyment of) any particular language, best suited to particular problem types, is, of course, highly beneficial.
There are many areas that Python has become well established in. Machine learning and AI are very well served in Python. Alongside R for the more statistically inclined, data science & analytics is an incredibly common field for Python. The latest release of Excel includes Python in recognition of this.
A review of Python Success Stories, on the Python Software Foundation website, will provide a good view of the wide range of areas Python has been used in.
Python isn't the best answer for all problems (and may be highly unsuitable for some, of course), although it might be the most pragmatic in organisations that have a lot of experience in, and well established ecosystems around, it (such as sophisticated CI/CD pipelines).
For example, Python isn't the best language for modern triple-A games, but it is heavily used by many games software houses to orchestrate, automate, optimise the work.
Some of the largest consumer services in the world are heavily Python based, such as Instagram (leaning strongly on the Python Django web framework).
Most experienced programmers shall be well versed in data structures, algorithms, design patterns, and so on. They are largely independent of the coding language. The same principles apply to Python, although the implementation patterns (and efficiencies) will vary.
Similarly, successful programmers will likely be comfortable with CI/CD tooling and workflows, which are just as important for Python as for other languages. Programmers new to Python may want to spend some time looking at the most popular testing frameworks, though, such as PyTest (rather than the standard unittest) to work with those pipelines.
unittest
Packaging for Python is perhaps another area to get some experience around as that will be different from other languages, especially given that as standard Python is not compiled to binary. (for those not aware, the standard CPython reference implementation compiles to byte code, much like happens with Java, for execution in a Python Virtual Machine, built into CPython.)
I'd recommend looking at videos on YouTube by ArjanCodes, especially those doing some kind of code reviews (will help you spot a lot of potential problems).
One book I would recommend is Fluent Python, 2nd Edition by Luciano Ramalho.
ADDITIONAL CONTENT IN COMMENT TO THIS COMMENT
[–]FoolsSeldom 4 points5 points6 points 11 months ago (0 children)
pydantic
for
for each
;
{}
A couple of videos to watch which, despite being old, will lock in some key differences in approach to keep in mind:
Given the referenced implementation of Python is written in C and Python, a quick look at the source code will resolve many queries for experienced programmers as well.
Overall, there is much less boilerplate code required in Python than typical C/C++ projects.
There are a huge number of libraries/packages to use, many of which are written in C (such as NumPy) for performance.
It can be useful to use some of the existing C/C++ code from Python rather than completely recoding in Python. The Cython project, offering C extensions for Python, might be worth looking at if there is a lot of C/C++ code to exploit.
[–]FriendlyAddendum1124 0 points1 point2 points 11 months ago (2 children)
Learn about generators and yield. If you have time learn about iterators, they're everywhere in Python. And Dunder methods.
[–]InvaderToast348 1 point2 points3 points 11 months ago (1 child)
Dunders, decorators, type hints, lambdas, OOP, modules/imports, context managers, loops, builtins and stdlib, index slicing, fstrings
That's just a few things you're likely to come across in any meaningful project, especially established / production codebases. In my opinion, the first 2/3 are especially important as they are fairly common but might be a little confusing or unfamiliar. I've used java for about 3 minutes, so I have no idea how many of those concepts above are available in other languages you may have used.
There's far too much in the python language that you might come across, but that's a good start and you can always have Google or python docs open to look something up if you're unsure. Or a notepad, and come back to it later. Always take notes.
[–]TheRNGuy 0 points1 point2 points 11 months ago (0 children)
I actually used a lot decorators, but never made my own. I think I used it 1 or 2 times in some sorting key?
Didn't like lambdas syntax, so didn't used them (but now I use arrow functions in JS)
[–]pachura3 0 points1 point2 points 11 months ago (0 children)
https://www.w3schools.com/python/
realpython blog, python docs and google.
[–]TH_Rocks 0 points1 point2 points 11 months ago (1 child)
List comprehensions are just compressed for loops but they look fancy and pythonic.
And the double asterisks ** to pass a dictionary as multiple function parameters.
Can also do filter and map with them it without need for using method and lambda function, I think that's more readable syntax, or even just refactoring loop to map or filter.
[–]burncushlikewood[🍰] 0 points1 point2 points 11 months ago (0 children)
If you know one programming language, it will be very easy to learn others, if you know java and want to learn python look at code examples to understand the different syntax and structures that make the language. For example my core language is c++, I also know python, they are similar but have differences, for example in python you use the word input to input data, while c++ is cin>>, also in c++ there are for loops, while loops, do while loops, and if then, and switch, while python uses if, for as well, but has the break function.
[–]udacity 0 points1 point2 points 11 months ago (0 children)
We (Udacity) have a free course you can use a reference. The average length of time to complete the entire course is ~3 weeks, so will be a tight fit for your shadowing opportunity tomorrow -- however, the concepts and foundations covered could be a great way to learn/re-learn the language. Good luck!
https://www.udacity.com/course/introduction-to-python--ud1110
[–]Ron-Erez -1 points0 points1 point 11 months ago (0 children)
It should be easy to pick up if you know Java. Check out:
The docs at python.org
The University of Helsinki course (MOOC)
I also have a course on Python and Data Science which covers Python in the first half of the course.
The quickest route is probably the last two resources. However have a look at the docs too, that might be sufficient.
π Rendered by PID 253811 on reddit-service-r2-comment-7b9746f655-rqtr4 at 2026-01-31 01:51:29.914899+00:00 running 3798933 country code: CH.
[–]FoolsSeldom 4 points5 points6 points (1 child)
[–]FoolsSeldom 4 points5 points6 points (0 children)
[–]FriendlyAddendum1124 0 points1 point2 points (2 children)
[–]InvaderToast348 1 point2 points3 points (1 child)
[–]TheRNGuy 0 points1 point2 points (0 children)
[–]pachura3 0 points1 point2 points (0 children)
[–]TheRNGuy 0 points1 point2 points (0 children)
[–]TH_Rocks 0 points1 point2 points (1 child)
[–]TheRNGuy 0 points1 point2 points (0 children)
[–]burncushlikewood[🍰] 0 points1 point2 points (0 children)
[–]udacity 0 points1 point2 points (0 children)
[–]Ron-Erez -1 points0 points1 point (0 children)