I have always been interested in Python, since the 90’s.
But I never really learned it. Yet, it kept growing in popularity and in usage in ways that are pretty much unprecedented in the history of computers. It is literally eating the world.
There is a huge variety of scenarios that Python excels in. Shell scripting, task automation, Web development are just some basic examples.
Python is the language of choice for data analysis, machine learning, but it can also adapt to create games and work with embedded devices.
Most importantly, it’s the language of choice for introductory computer science courses in universities all around the world.
Many students learned Python as the first language. Many are learning it right now, many will learn it in the future. And for many of them, Python will be the only programming language they need.
Thanks to this unique position, Python is likely going to grow even more in the future.
The language is simple, expressive, and it’s quite straightforward.
The ecosystem is huge. There seems to be a library for everything you can imagine.
Python is a high level programming language suitable for beginners thanks to its intuitive syntax, its huge community and vibrant ecosystem.
It is also appreciated by professionals across many different fields.
Technically speaking it is an interpreted language that does not have an intermediate compilation phase like a compiled language, for example C or Java.
And like many interpreted languages it is dynamically typed, which means that you do not have to indicate the types of the variables you use, and variables are not tied to a specific type.
This has pros and cons, in particular we can mention that you write programs faster, but on the other hand you have less help from the tools to prevent possible bugs and you will find out about some kinds of issues only by executing the program, at runtime.
Python supports a wide variety of different programming paradigms, including procedural programming, object oriented programming and functional programming. It’s flexible enough to adapt to a lot of different needs.
Created in 1991 by Guido van Rossum, it’s been rising in popularity especially in the past 5 years, as this Google Trends infographic shows:
Starting with Python is very easy. All you need is to install the official package from python.org, for Windows, macOS or Linux, and you’re ready to go.
If you are new to programming, in the following posts I will guide you to go from zero to becoming a Python programmer.
And even if you are currently a programmer specialized into another language, Python is a language worth knowing because I think we’re just at the start.
Lower level languages like C++ and Rust might be great for expert programmers, but daunting to begin, and they take a long time to master. Python, on the other hand, is a programming language for programmers, of course, but also for the non-programmers. The students, the people doing their day job with Excel, the scientists.
The language everyone interested in coding should learn first.
Starting with this post, I want to make a new series dedicated to the Python programming language.
- …and more coming soon!
More python tutorials:
- Introduction to Python
- Installing Python 3 on macOS
- Running Python programs
- Python 2 vs Python 3
- The basics of working with Python
- Python Data Types
- Python Operators
- Python Strings
- Python Booleans
- Python Numbers
- Python, Accepting Input
- Python Control Statements
- Python Lists
- Python Tuples
- Python Sets
- Python Dictionaries
- Python Functions
- Python Objects
- Python Loops
- Python Modules
- Python Classes
- The Python Standard Library
- Debugging Python
- Python variables scope
- Python, accept arguments from command line
- Python Recursion
- Python Nested Functions
- Python Lambda Functions
- Python Closures
- Python Virtual Environments
- Use a GoPro as a remote webcam using Python
- Python, how to create a list from a string
- Python Decorators
- Python Docstrings
- Python Introspection
- Python Annotations
- Python, how to list files and folders in a directory
- Python, how to check if a number is odd or even
- Python, how to get the details of a file
- Python, how to check if a file or directory exists
- Python Exceptions