What is Python?
Python is an interpreted high-level general-purpose programming language. Python's design philosophy emphasizes code readability with its notable use of significant indentation. Its language constructs as well as its object-oriented approach aim to help programmers write clear, logical code for small and large-scale projects.
Python is dynamically typed and garbage-collected. It supports multiple programming paradigms, including structured (particularly, procedural), object-oriented and functional programming. Python is often described as a "batteries included" language due to its comprehensive standard library.
Python consistently ranks as one of the most popular programming languages. It is used for:
- web development (server-side),
- software development,
- mathematics,
- system scripting.
Guido van Rossum |
Python 3.9.0
Some of the new major new features and changes in Python 3.9 are:
- PEP 573, Module State Access from C Extension Methods
- PEP 584, Union Operators in
dict
- PEP 585, Type Hinting Generics In Standard Collections
- PEP 593, Flexible function and variable annotations
- PEP 602, Python adopts a stable annual release cadence
- PEP 614, Relaxing Grammar Restrictions On Decorators
- PEP 615, Support for the IANA Time Zone Database in the Standard Library
- PEP 616, String methods to remove prefixes and suffixes
- PEP 617, New PEG parser for CPython
- BPO 38379, garbage collection does not block on resurrected objects;
What can Python do?
- Python can be used alongside software to create workflows.
- Python can be used on a server to create web applications.
- Python can connect to database systems. It can also read and modify files.
- Python can be used for rapid prototyping or production-ready software development.
- Python can be used to handle big data and perform complex mathematics.
Why Python?
- Python has a simple syntax similar to the English language.
- Python works on different platforms (Windows, Mac, Linux, Raspberry Pi, etc).
- Python has a syntax that allows developers to write programs with fewer lines than some other programming languages.
- Python can be treated procedurally, in an object-oriented way, or in a functional way.
- Python runs on an interpreter system, meaning that code can be executed as soon as it is written. This means that prototyping can be very quick.
Python Syntax compared to other programming languages
- Python uses new lines to complete a command, as opposed to other programming languages which often use semicolons or parentheses.
- Python was designed for readability and has some similarities to the English language with influence from mathematics.
- 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.
- Google's Python Class
- Udemy
- CodeCademy
- Learn Python from Scratch by Educative
- Coursera
- Microsoft's Free Python Course
Programming examples
Hello world program:
Program to calculate the factorial of a positive integer:
Post a Comment