Python is one programming language anyone can use. Its syntax is simple, which makes it a good fit for beginners. This time you'll get an introduction to Python first: what it is, where it came from, and what it can do. Okay, let's go.
What is Python, anyway?
Python is a high-level programming language with syntax that reads easily. Python also counts as an interpreted language, because it doesn't need a compile step to run.
Python was designed so its syntax reads easily and feels human. Unlike C++ or Java, which demand a pile of symbols, Python code looks cleaner because it uses indentation to mark command blocks.
For a quick picture of what Python syntax looks like, here it is next to C++. Both programs print the numbers 1 through 10.
#include <iostream>
void main(){
for (int i=1; i<11; ++i){
std::cout << i << std::endl;
}
}
Now let's write the same thing in Python.
for i in range(1,11):
print(i)
Compare the two and see which one is easier to read, hehe...
The history of Python
This general-purpose language was first started by Guido van Rossum in 1991, and it is still developed today by the Python Software Foundation, with every feature and convenience it has picked up since.
In the late 1980's Guido van Rossum began building Python as a hobby over Christmas. Python drew inspiration from the language that came before it, ABC. Rossum took the good parts of ABC, including its style of writing.
Python 2.0 shipped on October 16, 2000, with many new features to meet the computing needs of the time.
Python 3.0 shipped on December 3, 2008. Unfortunately, a lot of Python 2.0 code doesn't fit this newer version, so code that has to be truly compatible needs porting from version 2 to version 3 first.
At the time of writing, the newest version of Python is 3.9.0, released on October 5, 2020.
What Python is for
Python itself is a multi-purpose language. Everyone can use it, from beginners to the expert crowd. The reason is Python's simple syntax, which can be arranged into something complex and useful.
A few uses of the Python language:
- Learning to program
- Web development
- Game development
- Software development
- Computation and research
- Artificial intelligence and machine learning
And a whole lot more...
Why learn Python?
That question is yours to answer, hehe...
What's clear is that Python fits learning the basic concepts of programming. The language is easy to pick up because its syntax is simple and readable. Even so, it gives up nothing to more complex languages in what it can do.
From experience, Python also turns up in plenty of university departments, even outside informatics, information systems, and the like. Some friends in industrial engineering, and even agricultural engineering, study Python too. I'm not sure what they use it for, but it looks like a data-processing tool (a replacement for MATLAB, maybe?).
Learning it just to add to your knowledge, or purely as a hobby, is fine too. Python is fun to study, and if you're creative enough it can produce something out of the code you type. Better to spend your free time building a game than playing one, hehe...
Wrapping up
That's probably enough for an introduction to the Python language. Hope it helps.
Next you'll try installing the Python 3 interpreter on your own machine. See ya..