SlideShare a Scribd company logo
Introduction to
Python Programming
BY : DEEPESH NARANG
{
}
...
Table of contents
• INTRODUCTION AND BASICS
• PYTHON SYNTAX
• DATA TYPES AND VARIABLES
• PYTHON LIBRARIES AND FRAMEWORKS
• FILE HANDLING IN PYTHON
• REGISTRATION FORM
01
02
03
OVERVIEW :
PYTHON FUNDAMENTALS
PROJECT BASED LEARNING
OVERVIEW
01 {
} ..
..
INTRODUCTION
What is Python ?
● Python is a high –level interpreted programming
language that is known for its simplicity , readability and
versatality.
● It was created in the late 1980s by Guido van Rossum
and had since become one of the most popular
programming language.
● KEY FEATURES : Dynamic typing , automatic memory
management, modularized , open - source
*
BASIC CONCEPTS
• Variables are the
placeholders of data.
• They must not be a
keyword,start with numeric
caharacter or a special
symbol.
• input() : Used to get the input
from the user. Can be type
casted
• print() :
< INPUT/OUTOUT > Variables
{
}
Python Synatx Basics
Practical EXERCISE 01
Exercise : Program To print the BMI( Body
Mass Index)
Height = float(input(“Enter your height in cm. )
Weight = float(input(“Enter your weight in kg.)
BMI = Height/(Weight*Weight)
float_BMI = float(BMI)
print(f”Your BMI is {float_BMI} )
Expected Output :
Enter your height in cm. 167
Enter your weight in kg. 75.2
Your BMI is 27.0
Concepts Learned
In Python Indentation
matters the most !!!!
In python string and
numeric data can be
used together with ‘f’
character
Type casting of
variables using ()
paranthesis and data
type outside.
This returns the data
type as class.
Ex. Class <int>
Indenatation
Type Casting
F - strings
Type Checking
PYTHON FUNDAMENTALS
02 {
} ..
..
It includes
int,float,complex for
numerical.
It includes dict
For creating
dictionary.
Here are PYTHON DATE TYPES :
It includes str
data type for textual
data.
It includes keyword
‘bool’ for representing
true or false values.
It indicates none data
type.
It includes set,
frozenset.
TEXT NUMERIC MAPPING
BOOLEAN NONE SET
{
} ..
..
PYTHON LIBRARIES AND FRAMEWORKS
● The major difference between frameworks and libraries
is complexity.
● Library offers fewer complexities but frameworks are
opposite.
● Example of frameworks are : Django, Flask, Flask,
CherryPy etc.
● Examples of Libraries are :TensorFlow, Numpy,
● keras, PyTorch etc.
}
..
FILE HANDLING IN PYTHON
● Python provides several functions for
creating, reading, updating and deleting files
.
● The key functions for working with files are
open(), read(), write() and close().
}
..
Practical Exercise 02
# Creating a text file with the command function ‘x’ :
● f = open(“myfile.txt”, “x”)
# Inserting the string into the text file using write() method :
● file.write(“Hello Theren”)
# Reading from a text file using read() method :
● f = open(“myfile.txt”, “x”)
● print(f.read())
A Picture Is Worth a Thousand Words
PROJECT BASED
LEARNING
03 {
} ..
..
REGISTRATION FORM
Here In this section we are going to implement a
Registration Form using Tkinter GUI method libraray and
MYSQL Database.
● Tkinter is a Python library for developing GUI
(Graphical User Interfaces). We use the Tkinter library
for creating an application of UI (User Interface), to
create Windows and all other graphical user
interfaces.
} ..
{ Here we have
used Pycharm
IDE and created
our
File . }
This is the code for creating table ‘user’
and importing modules.
CODE FOR
THE GUI
This is the Entire Source code for the
GUI
{
}
...
OUTPUT
This is the actual Registration form
that will appear.
{
}
...
• PYTHON GUI
BASED
Language
• PYTHON 2.x or 3.x
recommended
Version
• None
Database
Project Information
*
THANKS !
< Do you have any questions ? >

More Related Content

Similar to Introduction_To_Python_Programming_.pptx (20)

PPTX
4. Tools Proyek Data Science DTS-TA v.3.pptx
irvaimuhammad
 
PPTX
Python programming language introduction unit
michaelaaron25322
 
PPTX
Introduction_to_Python.pptx
Vinay Chowdary
 
PPSX
Introduction to Python programming language
Dr. A. B. Shinde
 
PDF
Python_Programming_PPT Basics of python programming language
earningmoney9595
 
PDF
Python Programming
Saravanan T.M
 
PPTX
python intro and installation.pptx
adityakumawat625
 
PDF
Python basics_ part1
Elaf A.Saeed
 
PDF
Unit 1-Part-1-Introduction to Python.pdf
Harsha Patil
 
PDF
Python Programming.pdf
ssuser9a6ca1
 
PDF
summer training report on python
Shubham Yadav
 
PDF
Python Course In Chandigarh
Excellence Academy
 
PDF
Introduction to python
Mohammed Rafi
 
KEY
Programming with Python: Week 1
Ahmet Bulut
 
PDF
From Basics to Advanced: A Comprehensive Python Programming Guide
pallavichauhan2525
 
PDF
Python Programming Part 1.pdf
percivalfernandez2
 
PDF
Python Programming Part 1.pdf
percivalfernandez2
 
PDF
Python Programming Part 1.pdf
percivalfernandez2
 
PPTX
What is python
faizrashid1995
 
PPTX
PYTHION IN DETAIL INFORMATION EDUCATIONAL
auramarketings
 
4. Tools Proyek Data Science DTS-TA v.3.pptx
irvaimuhammad
 
Python programming language introduction unit
michaelaaron25322
 
Introduction_to_Python.pptx
Vinay Chowdary
 
Introduction to Python programming language
Dr. A. B. Shinde
 
Python_Programming_PPT Basics of python programming language
earningmoney9595
 
Python Programming
Saravanan T.M
 
python intro and installation.pptx
adityakumawat625
 
Python basics_ part1
Elaf A.Saeed
 
Unit 1-Part-1-Introduction to Python.pdf
Harsha Patil
 
Python Programming.pdf
ssuser9a6ca1
 
summer training report on python
Shubham Yadav
 
Python Course In Chandigarh
Excellence Academy
 
Introduction to python
Mohammed Rafi
 
Programming with Python: Week 1
Ahmet Bulut
 
From Basics to Advanced: A Comprehensive Python Programming Guide
pallavichauhan2525
 
Python Programming Part 1.pdf
percivalfernandez2
 
Python Programming Part 1.pdf
percivalfernandez2
 
Python Programming Part 1.pdf
percivalfernandez2
 
What is python
faizrashid1995
 
PYTHION IN DETAIL INFORMATION EDUCATIONAL
auramarketings
 

Recently uploaded (20)

PPTX
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
PPTX
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
PDF
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
PDF
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
PDF
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
PPTX
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
PDF
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
PPTX
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
PDF
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
PPTX
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
PDF
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
PDF
Staying Human in a Machine- Accelerated World
Catalin Jora
 
PPTX
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
PDF
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
PDF
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Agentforce World Tour Toronto '25 - MCP with MuleSoft
Alexandra N. Martinez
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
What’s my job again? Slides from Mark Simos talk at 2025 Tampa BSides
Mark Simos
 
New ThousandEyes Product Innovations: Cisco Live June 2025
ThousandEyes
 
NLJUG Speaker academy 2025 - first session
Bert Jan Schrijver
 
Automating Feature Enrichment and Station Creation in Natural Gas Utility Net...
Safe Software
 
Mastering Financial Management in Direct Selling
Epixel MLM Software
 
Q2 FY26 Tableau User Group Leader Quarterly Call
lward7
 
SIZING YOUR AIR CONDITIONER---A PRACTICAL GUIDE.pdf
Muhammad Rizwan Akram
 
Designing_the_Future_AI_Driven_Product_Experiences_Across_Devices.pptx
presentifyai
 
How do you fast track Agentic automation use cases discovery?
DianaGray10
 
MuleSoft MCP Support (Model Context Protocol) and Use Case Demo
shyamraj55
 
The 2025 InfraRed Report - Redpoint Ventures
Razin Mustafiz
 
Staying Human in a Machine- Accelerated World
Catalin Jora
 
The Project Compass - GDG on Campus MSIT
dscmsitkol
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
[Newgen] NewgenONE Marvin Brochure 1.pdf
darshakparmar
 
UiPath DevConnect 2025: Agentic Automation Community User Group Meeting
DianaGray10
 
The Rise of AI and IoT in Mobile App Tech.pdf
IMG Global Infotech
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Ad

Introduction_To_Python_Programming_.pptx

  • 1. Introduction to Python Programming BY : DEEPESH NARANG { } ...
  • 2. Table of contents • INTRODUCTION AND BASICS • PYTHON SYNTAX • DATA TYPES AND VARIABLES • PYTHON LIBRARIES AND FRAMEWORKS • FILE HANDLING IN PYTHON • REGISTRATION FORM 01 02 03 OVERVIEW : PYTHON FUNDAMENTALS PROJECT BASED LEARNING
  • 4. INTRODUCTION What is Python ? ● Python is a high –level interpreted programming language that is known for its simplicity , readability and versatality. ● It was created in the late 1980s by Guido van Rossum and had since become one of the most popular programming language. ● KEY FEATURES : Dynamic typing , automatic memory management, modularized , open - source *
  • 5. BASIC CONCEPTS • Variables are the placeholders of data. • They must not be a keyword,start with numeric caharacter or a special symbol. • input() : Used to get the input from the user. Can be type casted • print() : < INPUT/OUTOUT > Variables { }
  • 6. Python Synatx Basics Practical EXERCISE 01 Exercise : Program To print the BMI( Body Mass Index) Height = float(input(“Enter your height in cm. ) Weight = float(input(“Enter your weight in kg.) BMI = Height/(Weight*Weight) float_BMI = float(BMI) print(f”Your BMI is {float_BMI} ) Expected Output : Enter your height in cm. 167 Enter your weight in kg. 75.2 Your BMI is 27.0
  • 7. Concepts Learned In Python Indentation matters the most !!!! In python string and numeric data can be used together with ‘f’ character Type casting of variables using () paranthesis and data type outside. This returns the data type as class. Ex. Class <int> Indenatation Type Casting F - strings Type Checking
  • 9. It includes int,float,complex for numerical. It includes dict For creating dictionary. Here are PYTHON DATE TYPES : It includes str data type for textual data. It includes keyword ‘bool’ for representing true or false values. It indicates none data type. It includes set, frozenset. TEXT NUMERIC MAPPING BOOLEAN NONE SET { } .. ..
  • 10. PYTHON LIBRARIES AND FRAMEWORKS ● The major difference between frameworks and libraries is complexity. ● Library offers fewer complexities but frameworks are opposite. ● Example of frameworks are : Django, Flask, Flask, CherryPy etc. ● Examples of Libraries are :TensorFlow, Numpy, ● keras, PyTorch etc. } ..
  • 11. FILE HANDLING IN PYTHON ● Python provides several functions for creating, reading, updating and deleting files . ● The key functions for working with files are open(), read(), write() and close(). } ..
  • 12. Practical Exercise 02 # Creating a text file with the command function ‘x’ : ● f = open(“myfile.txt”, “x”) # Inserting the string into the text file using write() method : ● file.write(“Hello Theren”) # Reading from a text file using read() method : ● f = open(“myfile.txt”, “x”) ● print(f.read())
  • 13. A Picture Is Worth a Thousand Words
  • 15. REGISTRATION FORM Here In this section we are going to implement a Registration Form using Tkinter GUI method libraray and MYSQL Database. ● Tkinter is a Python library for developing GUI (Graphical User Interfaces). We use the Tkinter library for creating an application of UI (User Interface), to create Windows and all other graphical user interfaces. } ..
  • 16. { Here we have used Pycharm IDE and created our File . }
  • 17. This is the code for creating table ‘user’ and importing modules.
  • 18. CODE FOR THE GUI This is the Entire Source code for the GUI { } ...
  • 19. OUTPUT This is the actual Registration form that will appear. { } ...
  • 20. • PYTHON GUI BASED Language • PYTHON 2.x or 3.x recommended Version • None Database Project Information *
  • 21. THANKS ! < Do you have any questions ? >