Python is a popular programming language created in 1991. It is used for web development, software development, mathematics, and system scripting. Python is known for its simple, readable syntax.
What can Python do?
Python can be used on a server to create web applications.
Python can be used alongside software to create workflows.
Python can connect to database systems. It can also read and modify files.
Python can be used to handle big data and perform complex mathematics.
Python can be used for rapid prototyping, or for production-ready software development.
Why is Python so Popular?
Python's popularity has skyrocketed in recent years. Here are a few reasons why it's the language of choice for many:
Beginner-Friendly: Python's syntax is exceptionally clear and readable, making it the perfect first language for new programmers.
Massive Standard Library: Python comes with "batteries included." It has built-in modules for almost everything, from web scraping to math operations.
Active Community: With millions of developers worldwide, if you run into a problem, chances are someone has already solved it and posted the answer online.
Versatility: Whether you want to build a website, program a robot, or analyze financial data, Python has the tools to make it happen.
Python 2 vs. Python 3
You might occasionally hear about Python 2 and Python 3.
Python 2 was released in 2000 and was widely used for many years. However, it reached its official "end of life" on January 1, 2020. It is no longer supported or updated.
Python 3 is the modern, current version of the language. It includes many improvements and features not found in Python 2. This tutorial focuses exclusively on Python 3.
Python Syntax compared to other programming languages
Python was designed for readability, and has some similarities to the English language with influence from mathematics.
Python uses new lines to complete a command, as opposed to other programming languages which often use semicolons or parentheses.
Python relies on indentation, using whitespace, to define scope; such as the scope of loops, functions and classes. Other programming languages often use curly-brackets for this purpose.