It is a dynamic, high-level, open-source global programming language that
is easy to learn. The code of this language is very easy to learn in terms of
understanding and reading. According to a survey that was conducted in
the United States of America, the results showed that Python is the second
easiest programming language to learn after HTML.
Python was developed at the Netherlands Institute of Mathematics and Informatics (CWI) in
Amsterdam by Guido van Rossum in the late 1980s, and was first announced in 1991.
The core of the language was written using the C programming language.
Rossum named his language "Python" after his admiration for a famous British comedy troupe called
Monty Python.
It is considered one of the simplest languages in terms of grammar.
It is free and open-source.
Python's capabilities are limitless despite its simplicity.
It is a dynamic language.
It can be learned quickly.
Writing programs requires fewer lines of code.
It has a very large reference collection.
It works on all operating systems (Windows, Mac, Linux), and is even included in macOS and Linux.
Mobile app development has free and open-source [Link] example, Togo and PyTQ specialize
primarily in mobile applications and user interface development.
Artificial intelligence (AI) has libraries that provide users with everything they might need, relying on
deep learning and artificial intelligence, such as the Pandas library and others.
Data [Link] Python programming language contains libraries specializing in data science,
including TensorFlow, NumPy, Pandas, and SciPy.
Automation software and script development. Automation refers to the process of converting difficult,
routine, or complex tasks that often take a long time into automated tasks that are automatically
performed by machines. An example of this is Arduino.
Video Game Development .Python provides one of the most popular libraries, PyGame, which is
among the best and most widely used libraries in video game development and programming.
Web [Link] Django framework, written in Python, is a strong competitor to other
popular web frameworks. It is based on the MTV (Model-Model-View) architecture, which is built
on the Python programming language.
Scraping Techniques. Scraping techniques based on browsing a website and extracting specific
information.
( Yahoo ) •
)Google ) •
) Disney ) •
• ( NASA )
Electronic Arts ( Battlefield ) •
Installing Python on Linux or macOS
If Linux or macOS is your operating system, that's great because Python comes pre-installed on both.
Installing Python on Windows
You can download Python from the official website.
www. python. org/ download/ https://
If the download is successful, you will find an add-on on your computer called IDLE
(Integrated Development Environment for Python)
Integrated Development Environment for Python
Its purpose is to provide a way to interact with the Python programming language.
Pycharm
PyCharm is an integrated development environment (IDE) used for computer programming,
especially programming in Python, as it was specifically designed for Python and all its branches
such as Django and others.
Spyder
Spyder is an integrated development environment (IDE) designed for Python programming.
It provides MATLAB-like functionality in a lightweight, user-friendly interface.
The platform is widely used in research, data analysis, and scientific computing
Jupyter Notebook
The Anaconda platform must first be installed to use Jupyter, a very powerful tool often used for
interactive data science project development. It integrates code and output into a single document.
We can search on Google for "Python interpreter online"; however, one of the biggest
drawbacks of these sites is the inability to save your program.
We will use the website
https:// repl. it/ languages/ python 3
Python distinguishes between uppercase and lowercase letters.
Python handles the names we use carefully, whether we are putting these names for
variables, functions, classes, objects, etc.
Note and note are not the same thing.
While in other programming languages like HTML, it doesn't matter if the letters are
uppercase or lowercase.
If you want to write more than one command on the same line, place a semicolon (;) between
each two commands. This will allow the Python interpreter to understand that the line contains
more than one command.
Example: x = 1; y = 2; z = 3
Variable naming requirements:
- Must not begin with a number
- Must not begin with any symbol except underscore (_)
- Must not be a Python reserved word
الصح الخطاء
M 8m
moh1234 $mo
Moh_7 Print
_76g for
Assigning a value to a variable Assigning a value to a specific name is one of the most fundamental
aspects of programming. This name is known in programming as a variable.
If you give a variable a new value, it will replace the old one, and
the variable will now store the new value.
Strings
- A sequence of letters enclosed in quotation marks ```
الصح الخطاء
’’Hello World ’’ ’’Hello World
"’’ لغة البايثون ’’’ لغة البايثون
’Hello World ’ Hello World
string + string
Indexing strings: string[expression]
I believe experience has shown that Python is both possible and desirable as a primary teaching language:
• It's free (both in terms of cost and source code).
• It's a flexible tool that enables the teaching of both traditional procedural programming and modern
OOP.
• It's a real-world programming language that can be used in both academic and business settings.
• It appears to be one of the fastest to learn and works well with many libraries.