Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Python Programming Tutorial

Day 01
Agenda
 What is Python ? Why Python, History of Python
 Installation of Python

Introduction :
Python is a high-level, interpreted programming language known for its
simplicity and readability. Here's a brief overview:
History of Python:
- Python was created by Guido van Rossum and first released in 1991.
- Its design philosophy emphasizes code readability with its notable use of
significant whitespace.
- Python has experienced steady growth in popularity due to its versatility and
ease of learning.
- Major releases include Python 2.x and Python 3.x,now we are working with
python 3.x(as of April 2024 3.12.2)

Features of Python:
1. Simplicity: Python syntax is designed to be clear and readable, making it
easier to write and understand code.
2. Interpreted: Python is an interpreted language, meaning that code is executed
line by line, which allows for quicker development and debugging.
3. High-level: Python abstracts away low-level details like memory
management, allowing developers to focus on solving problems.
4. Dynamic typing: Variables in Python are dynamically typed, meaning you
don't have to declare their type explicitly. This makes Python flexible but
requires careful attention to variable types during development.
5. Extensive standard library: Python comes with a large standard library that
provides support for many common tasks, from file I/O to networking.
6. Cross-platform: Python code can run on various platforms like Windows,
macOS, and Linux without modification, making it highly portable.

1
7. Object-oriented:Python supports object-oriented programming paradigms,
allowing for the creation and manipulation of objects with properties and
methods.
8. Community:Python has a vibrant and active community of developers who
contribute to its growth, support, and evolution.
Why Python:
- Ease of Learning: Python's simple syntax and readability make it an excellent
choice for beginners.
- Versatility: Python can be used for a wide range of applications, including web
development, data analysis, artificial intelligence, scientific computing,
automation, and more.
- Productivity: With its clear syntax, extensive standard library, and third-party
packages, Python enables developers to build applications quickly and
efficiently.
Installation of Python:
Installing Python is straightforward and can be done on various operating
systems. Here's a general guide:
Installing Python on Windows:
1. Download Python:Visit the official Python website at python.org and go to
the Downloads section. Choose the latest version of Python for Windows and
download the installer.(URL: https://www.python.org/downloads/ )

2
2. Run the Installer:Once the installer is downloaded, double-click on it to run.
Check the box that says "Add Python x.x to PATH" during installation to make
Python accessible from the command line.
You can either choose install now or customize installation
File name: python-3.12.2-amd64.exe

3. Install Python: Follow the installation wizard instructions. You can customize
the installation path if needed, but the default settings are usually fine.
I want to use customize installation and click on it
It will open as follows and click on next

After clicking on next it will open advanced options select all checkboxes and
proceed for the installation it will take 2-3 minutes depend on the speed of the
pc.

3
4. Verify Installation: Open Command Prompt and type `python --version` to
verify that Python is installed correctly. You should see the version number
printed in the output.

Lets see sample hello word program


You can run sample Hello world by using notepad/ IDLE
Lets see how you can write in notepad
Open Notepad and write the following code and save as filename.py
.py should be mentioned as its python file otherwise your files wont run

4
I saved the first.py in d drive I will go there and try to run the file from
command prompt

Lets see how we can run in IDLE


Open IDLE and click ok new file it will open like below as follows

After saving click on run you will see the output

5
6

You might also like