I find this good for people that already know how to code in another language: www.pythoncheatsheet.org Answer from xelf on reddit.com
Top answer
1 of 4
3
I get so many errors. Honestly, even though you said "no videos or tutorials", you need one. Do the MOOC Java Programming from the University of Helsinki. Python and Java are very different beasts. You can be a decent programmer at either and will find the other difficult. Hence, do a course. I just recently started learning Python coming from a long history (>3 decades) of professional programming in multiple languages (Delphi, VB, C, Java, bit of C#) and still found that I absolutely need a structured course to get started. The gap between the languages was just too big. Sure, with the experience, you can breeze through the initial chapters as they deal with very basic things, like variables, conditionals, input/output, but you will still learn a lot. If you absolutely do not want to go that way, you need to learn to read and understand the errors and debug them. Yet, going this approach will make it way more tedious than it need be.
2 of 4
3
I highly recommend these two free online Java courses: MOOC.fi . The courses have you learn Java while simultaneously doing mini exercises to apply what you learned. The exercises get more complex as the course goes on. At the end of the second course you create a pretty decent GUI game. I skimmed your profile to gauge your level of Python. You'll probably find the first half of course 1 pretty easy, but everything after that will likely be mostly new to you. Course 2 will likely be all new to you. It's very easy to learn Python without really thinking about object oriented programming (OOP) concepts, but with Java you must learn object oriented programming concepts. After those two courses, I recommend doing a couple of small projects in Java and then reading a book on OOP design patterns. I recommend a called book "Head First Design Patterns". After that you should have a very solid understanding of Java and OOP fundamentals.
🌐
Reddit
reddit.com › r/learnpython › any good resources for an experienced java developer new to python?
r/learnpython on Reddit: Any good resources for an experienced Java developer new to Python?
January 13, 2022 -

Does anyone have any recommendations for material pitched a experienced developers wanting to get up-to-speed with Python quickly. Assume I can already read and write complex code in another language but have never used Python before.

🌐
Reddit
reddit.com › r/learnprogramming › learn java or python?
r/learnprogramming on Reddit: Learn Java or Python?
June 6, 2023 -

Hi,

I am a university graduate who would like to change my career to IT. I want to apply for a requalification course and basically I have two options available - both courses are "Programmer of web applications" - one is in Java and the other is in Python.

I need some help from someone who knows the industry and the pros and cons of choosing either language. I have read a lot of articles and watched youtube videos and it's practically 50:50. I am leaning towards Python though.

I know your first question will be: What do you want to do in IT?

But that's the problem, I don't know. I have never worked in IT and I haven't experienced different types or jobs to be able to know which I like the most. It's like asking me which food from the menu I liked the most before I had a chance to taste it. I like design, so possibly frontend. But I am open to anything. I think fullstack would be a good skillset to have to find lots of work?

What I know:

Java is more complex to write, harder to learn for a beginner. It is used in web development, Android and in a lot of big companies. It is supposedly harder to change fields in IT if you know Java. The popularity of it is slightly decreasing and the community as well (from what I've heard).

Python is easier to write and read, is used in machine learning and AI and databases. Generally slower than Java to execute, has more potential when you are trying to change fields in IT as it is more widely used.

That's what I know. What I need, is help with this question: As someone (a teacher) who is trying to change career and do something that will enable me to find work easily, which language should I choose to learn to open myself to most job opportunities, something that will be a good start, give me most options for the future and will not lock me in in a specific field, should I realise I do not like it. How should I make a decision? Can you tell me in more detail which language is used in which specific types of jobs and what kind of stuff I could do should I learn Python/Java?

Thank you in advance!

Ben

Top answer
1 of 2
5
Java is more complex to write, harder to learn for a beginner. It is used in web development, Android and in a lot of big companies. It is supposedly harder to change fields in IT if you know Java. The popularity of it is slightly decreasing and the community as well (from what I've heard). True that Java has way more boilerplate than Python due to the full Object Oriented paradigm. False that it is more difficult to change fields False that the popularity is decreasing as well as the community. Java is the enterprise language #1 and stays there simply because there is already way too much Java out there Python is easier to write and read, is used in machine learning and AI and databases. Generally slower than Java to execute, has more potential when you are trying to change fields in IT as it is more widely used. Python has way more use cases than you list for it. The very web site we are communicating on is running on Python Yes, it is somewhat slower, but it can use precompiled fast libraries written in C/C++ for speed Python does not have more potential when changing fields and is not more widely used The above said: yes, it is a 50:50 chance. I would say that learning Java makes you a better programmer, though. Python abstracts way too much and has too many "convenience features". Don't get this wrong, though. Python is a great language, but so is Java. If you haven't been exposed to programming, I would still suggest Java. The expressive nature, verbosity, explicit static typing, excellent tooling, and excellent elaborate error messages make it an ideal first language, even though the very first steps are more difficult. Python on the other hand has an extremely easy entry, yet, the implicit typing can cause problems that beginners will easily stumble over and then be left dumbfounded. The error messages have improved lately, but still are by far not as clear as Java's. Yet, don't overthink the whole. The first language you learn will definitely not be the last and every consecutive language will be easier. In the beginning when you start from 0 you are battling at two fronts: you are battling with the vocabulary and grammar of the programming language (the easier battle) and you are battling with creating detailed step-by-step algorithmic solutions to problems (actual programming - the difficult battle). Once you understand that learning a programming language only is a necessary evil to tell the stupid computer what we want it to do and that the actual programming, namely analyzing and dissecting problems and then developing detailed step-by-step algorithms to solve that problems are two distinct, decoupled activities you will also see that programming languages are just tools to express trains of thought. Once you can program, the actually used programming language becomes secondary. Sure, the paradigms, the vocabulary, the grammar will be different, but if you know what you want to express, you can do it in any language. Developing the "what" is the tricky part. It is a bit like learning a spoken language with very restricted English-like vocabulary and grammar and writing a comprehensive fully developed novel in said language.
2 of 2
2
Remember, that no matter what you choose, it won't define your career for years to come - no matter if you start with Python or Java, you can always learn the other, or a third language in far less time than it took to learn the first. Programming is much more about problem solving and understanding computers, than specific languages. I would recommend Python, because you'll fairly quickly be able to build stuff with it. No matter if you are interested in web-applications, desktop games, scripting, data science or something completely different. Java tends (or tended) to give you a better understanding of Object Oriented Programming, because it is very strict about everything being a class, and so on, and the entire API is extremely Object Oriented, with big-Os :) But in later years a lot of this OOP strictness is becoming annoying, you tend to write a lot, and I mean a lot of extra code, simply to make the Java compiler not throw up on you. And even the folks behind Java has realized this, and newer versions include more and more short-cuts for writing more compact code ... Anyways - as for jobs, I guess it depends a lot on where in the world you live and work. Here in northern Europe, Java is mostly used by banks and insurance companies - there are a lot of Java-code running out there, but it seems like no new products or new companies base anything on Java. Also the banks tends to want university masters with 5-7 years of experience ... But again, it doesn't matter - when you have learned some programming, you'll quickly get ideas as what you want to build, and maybe you need to learn Swift or Kotlin or React or C# to build those kind of applications, but that is the way it is going to be, there'll always be more to learn, so might as well just get started, and have fun along the way!
🌐
Quora
quora.com › Between-Java-and-Python-which-one-is-better-to-learn-first-and-why
Between Java and Python, which one is better to learn first and why? - Quora
You will be able to apply the best practices of OOP learnt from java , and learn to build C applications superfast with STL. 4. Learn Python to understand building protyping programs crazy fast, a little functional programming, and brilliant concurrency models. Watch videos by David Beazley they will blow your mind. 5. Learn Javascript and html to understand how web works. Build frontend and backend to appreciate the event driven model of the web. 6. Learn you a Haskell for great good for understanding statically typed, amazingly beautiful functional programming .Read Real World Haskell.
Find elsewhere
🌐
Reddit
reddit.com › r/learnprogramming › professor said learn python and java. why?
r/learnprogramming on Reddit: Professor said learn Python and Java. Why?
September 5, 2023 -

Hi all. I am a self taught learner of about 4 months now. In my last semester of school (business major), I took intro to programming and loved it. Really wished I did CS instead. I ended up emailing my professor from that class and asked what his thoughts were on self learning.

He told me to learn Python and Java and to have some kind of structure like an online course. Read the pragmatic programmer, and fluent python/effective Java.

I started with python and eventually found the Odin project and switch gears to js and web dev stuff. I am struggling to find a path and stick with it.

Why would my professor recommend those two languages to start with? Do these languages really relate to web dev? What kind of job opportunities can python and java lead to?

Top answer
1 of 59
134
If you had asked your professor "what's the most common language for web frontend development," he'd've probably told you JavaScript. But there are lots of kinds of programming out there, and Java and Python are a pretty good choice for covering a whole lot of bases. Python's one of the most popular languages out there, especially for what's trendy today (machine learning) and for developing being done by professionals who aren't primarily programmers (scientists, analysts, business-folks, artists). Java's extremely popular for big corporations building lots of complicated little business logic services, and it's still fairly popular for web backends. Plus, there are huge amounts of "learn programming" resources aimed at both of those languages. Also: if you really want to be a professional developer, I might suggest hanging out for an extra year or two to get a CS minor or something if you can. If your plan is to study programming, and they teach programming where you are, why leave? But I also understand that staying in school longer isn't always possible, financially or otherwise.
2 of 59
35
CS professor here. The programming language you choose as a beginner is mostly irrelevant. Python is known as an easy language because its syntax is similar to written English. If you really learn how to program, you'll learn that the language is just a tool. Asking for the "best language" this early is like comparing screw drivers without looking at the screw. Some languages will do some things better, but you don't need to know any of that right now. When you learn how to make a loop in one language, you can do it in nearly any language with the smallest of effort. The hard part is learning how to do something, not how to write it. Go deep, not wide. The things you learn in one language can apply to other languages. Your professor gave you good info. Thank them and take the advice. P.s. I'd rather hire someone who knows one language really well vs. Someone who knows a dozen languages at a shallow level.
🌐
Reddit
reddit.com › r/python › introductory java for python programmers. a cool side-by-side comparison.
r/Python on Reddit: Introductory Java for Python programmers. A cool side-by-side comparison.
January 12, 2012 - Presumably NASA and Youtube just have one person each working on their Python code, and they don't have to worry about mistakes. To be fair, there are differences, and there are probably reasons for choosing Java in some situations. But this passage smacks of "now learn a real programming ...
🌐
Reddit
reddit.com › r/learnpython › learning python with java knowledge
r/learnpython on Reddit: Learning python with java knowledge
February 17, 2025 -

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?

Top answer
1 of 5
5
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. 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
2 of 5
1
Learn about generators and yield. If you have time learn about iterators, they're everywhere in Python. And Dunder methods.
🌐
Reddit
reddit.com › r/learnpython › java after python.. possible??
r/learnpython on Reddit: Java after python.. possible??
August 8, 2022 -

I have been learning python for a year and I think I can code in python! I just need to work on projects to advance my skills. Lately I have been thinking to learn Java...so I took advice from my friends. They said I will have tough time learning Java because I have learned python before. They said I should have learned Java first and python later... maybe I messed up 😅😅

Is it true? Will it really be that difficult?😩

Python is my first language and I am thinking of learning Java now. Can I?! Please share your opinions

Thanks in advance 🤗🤗

🌐
Reddit
reddit.com › r/learnpython › courses for learning java from python
r/learnpython on Reddit: Courses for learning Java from Python
May 20, 2024 -

I'm currently pursuing a Master's in Computer Science and started earlier this year. As this semester wraps up, I've completed an "Introduction to Programming" course in Python. Next semester, I’ll be taking a course on Object-Oriented Programming that requires knowledge of Java.

I understand that learning a new language is easier once you have a solid programming foundation, but I’d like to get a head start. Does anyone know of any online short courses specifically designed for those transitioning from another programming language like Python?

Thanks!

🌐
Reddit
reddit.com › r/learnprogramming › suggestion: should i learn python or java?
r/learnprogramming on Reddit: Suggestion: should I learn python or java?
August 3, 2024 -

Hi! I'm a junior DevOps engineer and I would like to start developing backend too. I already know intermediate python and worked a little bit with django and I would like to dive deep into python and learn it well.

I asked my supervisor for his advice and he thinks that it's better for me to learn Java first. From his point of view Java is more technical and I can become a better developer by learning the fundamentals with it (like polymorphism, interfaces, data types). He considers python as an uneffective shortcut to learn bad software development practices.

At first he convinced me with his argument but then I documented myself better and I saw that even python has all of those concepts, so I feel like if I'm not lazy and l study python well I can achieve the same expertise I would get with Java.

Since I want python to be my main language I'm essentially very skeptical in using my energies in learning java from zero while I could dive deep in python and get solid with it. It's not like I only want to know python overall, but reading a book of 1600 pages like "learning python" takes time and effort and I feel like I want to make that effort on python, not java.

What do you think about it? I could really use your advice, thanks a lot in advance.

🌐
Reddit
reddit.com › r/learnjava › need to learn java fast as a python developer
r/learnjava on Reddit: Need to learn Java fast as a Python developer
April 30, 2019 -

I just started a new job last week and my task is to add a new feature to a complicated Java plugin. I haven’t coded in Java before... I am familiar with OOP but Python doesn’t really rely on it to the same extent as Java. I’d appreciate any resources geared towards experienced developers needing to pick this up fast, particularly focusing on the more esoteric/Javaesque (what’s the analog of Pythonic?) features as opposed to another one of the million “this is how you do a for loop in Java.”

For example, today I was banging my head because there was a function that took in a variable and did a bunch method calls to n the variable. The variable type was an interface and all the basic Java guides say you can’t instantiate an interface so I just didn’t get what’s going on until I understood that it means that any object type that implements the interface is permitted (what a terse way of saying that). So learning these kinds of features is especially valuable.

🌐
Reddit
reddit.com › r/java › new to programming did i choose the wrong language? java vs python
r/java on Reddit: New to programming did I choose the wrong language? Java vs Python
August 24, 2020 -

Hey guys,

I just started programming with the end goal of one day becoming an programmer one day but the catch is I don't know in what - web development, Android, iOS , ect.

For those who started programming did you already have an end goal in mind of what type of programmer to be?

I chose Java to start off with and been going at it hard but was thinking I should have done python since it's the most popular.

My goal was to go deep in one language and just learn the ins and outs of it to understand programming but chose Java for some reason but realized the python community is larger.

Am I approaching this wrong ? Any insight and Input????

🌐
Reddit
reddit.com › r/java › i'm interested in your opinion about "java for python programmers" by brad miller or a better alternative for a java newbie
r/java on Reddit: I'm interested in your opinion about "Java for Python Programmers" by Brad Miller or a better alternative for a Java newbie
December 28, 2012 -

I'm pretty comfortable with Python and I can code in a couple other languages. What should I read?

I don't want a book that would explain me what for loops are (Heads First) and I don't want a 1000-page monstrosity that would cover every detail and stuff that would be better off in a reference. An overview of the language that would concisely describe the quirks and allow me to start quickly is what I want (a "Java: the Good Parts", so to speak). My ultimate goal is to play around with my Android phone, but this question is just about Java (Android programming books that fit my goals are welcome, naturally, but just good Android programming books -- not so much).

What do you guys think of "Java for Python Programmers" by Brad Miller?

Or should I just read Oracle's tutorials? Or maybe you have a better suggestion?

🌐
Quora
quora.com › What-resources-would-you-recommend-for-a-Python-programmer-who-wants-to-learn-Java
What resources would you recommend for a Python programmer who wants to learn Java? - Quora
Answer (1 of 4): It feels like there are several layers of “learn Java”. I did learn Java on the job while using Python, and the process was as follows. 1. Get the idea about syntax, how to build data structures, and whats up in Java 8/9. ...