This document provides an introduction to the Python programming language. It discusses what Python is, how to install Python, and the two main ways to run Python programs: using an interactive interpreter prompt or script mode. It explains that Python is an object-oriented, high-level, interpreted programming language created in 1989 that supports multiple programming paradigms and can be used for a variety of applications. The document also provides steps for downloading, installing, and using Python on Windows systems.
2. Overview
• What is Python?
• Ways to run the python program
• Installing Python
• Interactive interpreter prompt
• Script Mode Programming
• Your Python Folder
3. What is Python
• Python is an object-oriented programming language created by Guido Rossum in 1989.
• Python is a general-purpose, dynamic, high-level, and interpreted programming language.
• It supports Object Oriented programming approach to develop applications.
• Python is easy to learn yet powerful and versatile scripting language, which makes it attractive for
Application Development.
• Python's syntax and dynamic typing with its interpreted nature make it an ideal language for scripting and
rapid application development.
• Python supports multiple programming patterns, including object-oriented, imperative, and functional or
procedural programming styles.
• Python is not intended to work in a particular area, such as web programming. That is why it is known as a
multipurpose programming language because it can be used with web, enterprise, 3D CAD, etc.
• Python makes development and debugging fast because there is no compilation step included in Python
development, and the edit-test-debug cycle is very fast.
4. Ways to run the python program
Python provides us the two ways to run a program:
• Using an Interactive interpreter prompt
• Using a script file
5. Installing Python
Step 1: To download and install Python, visit the official website of
Python https://www.python.org/downloads/release/python-3100 and choose your
version. We have chosen Python version 3.10.0.
6. Step 2: Install python for your system according to your
system compatibility
10. Step 6: wait for installation and the hit close.
11. Step 7: go to the start menu and search for the python that
you just installed and open it.
12. Interactive interpreter prompt :
Python’s console
Python provides us with the feature to execute the Python statement one by one at the interactive prompt. It
is preferable in the case where we are concerned about the output of each line of our Python program.
13. Script Mode Programming
The interpreter prompt is best to run the single-line statements of the code.
However, we cannot write the code every time on the terminal. It is not suitable
to write multiple lines of code.
Using the script mode, we can write multiple lines of code into a file that can be
executed later.
For this purpose, we need to open an editor like notepad, create a file named
and save it with the .py extension, which stands for "Python".
14. Your Python Folder
Location: First you need to set up a location to store your work.
If you are on a Windows computer, follow just one of the three choices
below to find an appropriate place for your files.
a. Your own computer’s memory
b. Flash drive
c. Temporary storage (desktop).
15. Step 1: open notepad and write a simple code and save the
file onto the desired location with.py an extension.
16. Step 2: now go to the folder where you saved the program
and open it in the python 3.10.0 IDE.
17. Step 3: run the code that’s saved by you and we get the
output onto the console.