Member-only story

Opinion: Is it better to learn Java or Python as your first language?

Brendan Massey
2 min readAug 13, 2018

--

When choosing to learn a first language in computer science, it is important to choose one that is relatively easy to learn. Two of the most highly recommended starter languages are Java and Python. They each come with their own advantages and their own disadvantages. Today, I will discuss these to give you an idea of why I prefer learning one over the other.

Python:

Python has quite easy syntax to learn. Most of the statements make sense, even to someone who does not know how to code. For example, Python’s print statement is simply, print(x). You do not need to memorize any special syntax to begin learning this language.

Python does not require you to compile your code, but rather allows you to run your code immediately using C (another coding language) in the background to auto compile your code.

Python is easier to pick up, which allows you to get to more entertaining code, quicker.

Java:

Image result for JAVA programming language logo
Credit to JAVA

Java has more difficult syntax to learn. This is an advantage with Java when you consider that most languages will have these quirks. Java gives you a good glimpse into what it is like to work with other languages, such as C++.

--

--

Brendan Massey
Brendan Massey

Written by Brendan Massey

I write about programming and computer science as well as review Coursera courses I have taken related to the aforementioned topics.

No responses yet