What is Python
Python is a popular programming language. It was created in 1991 by Guido van Rossum. It is now used for:
- web development (server development),
- software development,
- Data science,
What features does Python provide
- can be used on the server to create web applications.
- can be used together with software to create workflows.
- connects to database systems. It can also be used to read and modify files.
- can process large data and perform complex mathematical calculations.
- it is used for rapid prototyping or development of ready-to-use software.
- it is supported on different platforms (Windows, Mac, Linux, Raspberry Pi, etc.),
- has a simple syntax similar to English,
- has a syntax that allows developers to write programs with fewer lines, unlike other programming languages,
- works in an interpreter system, which means the code can be executed as soon as it is written. This means that prototyping becomes very fast,
- supports several programming paradigms, including structural, object-oriented, and functional.
Good to know
- The latest major version of Python is Python 3, which we will use in these lessons. However, Python 2, although not updated in any way other than security updates, is still quite popular.
- In these lessons, the Python code will be written in a text editor. You can write Python in an integrated development environment such as Thonny, Pycharm, Netbeans, or Eclipse, which are especially useful for managing large collections of Python files.
Python Syntax Compared to Other Programming Languages
- Python was designed for readability and has some similarities to English and mathematics.
- It uses new strings to execute commands, unlike other programming languages that often use semicolons or parentheses.
- Python relies on indentation, using spaces, to define area; such as the area of loops, functions, and classes. Other programming languages often use curly braces for this purpose.