Python is an open-source scripting language, which is high-level, interpreted, interactive and object-oriented. It is designed to be highly readable. The syntax of Python language is easy to understand and uses English keywords frequently.
Python Design Patterns - Gist | Insideaiml
Features of Python Language
In this section, we will learn about the different features of the Python language.
Python is processed at runtime using the interpreter. There is no need to compile the program before execution. It is similar to PERL and PHP.
Python follows the object-oriented style and design patterns. It includes the class definition with various features like encapsulation, polymorphism, and many more.
Python code is written in Windows operating system and can be used in the Mac operating system. The code can be reused and portable as per the requirements.
4. Easy to code
Python syntax is easy to understand and code. Any developer can understand the syntax of Python within a few hours. Python can be described as “programmer-friendly”
If needed, a user can write some of the Python code in C language as well. It is also possible to put python code in source code in different languages like C++. This makes Python an extensible language.
Consider the following important points related to Python programming language −
It includes functional and structured programming methods as well as object-oriented programming methods.
It can be used as a scripting language or as a programming language.
It includes automatic garbage collection.
It includes high-level dynamic data types and supports various dynamic type checking.
Python includes a feature of integration with C, C++ and languages like Java.
How to download python language in your system?
To download Python language in your system, follow this link − https://www.python.org/downloads/
It includes packages for various operating systems like Windows, MacOS and Linux distributions.
The Important Tools in Python
In this section, we will learn in brief about a few important tools in Python.
1. Python Strings
The basic declaration of strings is as follows −
str = 'Hello World!'
2. Python Lists
The lists of python can be declared as compound data types separated by commas and enclosed within square brackets ().
list = [ 'abcd', 786 , 2.23, 'john', 70.2 ]
tinylist = [123, 'john']
3. Python Tuples
A tuple is a dynamic data type of Python, which consists of a number of values separated by commas. Tuples are enclosed with parentheses.
tinytuple = (123, 'john')
4. Python Dictionary
Python dictionary is a type of hash table. A dictionary key can be almost any data type of Python. The data types are usually numbers or strings.