SlideShare a Scribd company logo
INTRODUCTION
TO
PYTHON
What is Python ?
Interactive
Interpreted
Object Oriented
Scripting Language
High Level Programming
Language
01
02
03
04
Difference between Programing language
& Scripting language
Legacy
Library
Future
Library
0100
0001
ASCII Unicode
0000
0000
0100
0001
7/2=3
print “GKTCS”
7/2=3.5
print (“GKTCS”)
PYTHON 2 PYTHON 3
It is
simple
Versatile &
Flexible
Expandable
Why
?
Beginner
Friendly
Mature
Package
Libraries
Support
AI
Advantages
Free & Open
Source
Interpreted
Language
Vast Libraries
Support
Improved
Productivity
Dynamically
Typed
Object
Oriented
Disadvantages
Speed
Limitations
Design
Restrictions
Weak in
Mobile
Computing
Underdeveloped
DB layers
Web Frameworks
Flask Web2Py
CherryPy Django
Tornado Pyramid
CherryPy
.pyw
.pyo
.py .pyc
A file created
with
optimizations
A Python
script for
Windows
A Python
script
archive
File Extensions in Python
01 02 03
04 05 06
The normal
extension for
a Python
source file
The compiled
bytecode
A Windows DLL
file
.pyz
.pyd
Network
Programin
g
6
Database
Access 5
1
Web &
Internet
Development
2 Games and
3D
Graphics
Business
Applications
4 3 Software
Development
Applications Of Python
Popular website build with Python
Reddit
YouTube Instagram
Google
Dropbox
Quora Pinterest
Step: 1
 To download and install Python, go to Python's official
website http://www.python.org/downloads/
Installing Python on Windows
Step: 2
 When download is complete run .exe file to install
Python.
Step: 3
 You can see python installation.
Step: 4
 when installation was complete you can see message
“setup was successful” on screen.
IDLE Development Environment
 Integrated DeveLopment Environment
 Text editor with smart indenting for
creating python files.
 Menu commands for changing system
settings and running files.
How Python run’s
Interpreter
Source code
Byte
Code
Running
Code
Library
Module
Virtual
Machine
Compiler
Running Python
 When you open the interpreter and type command
Datatypes
Text Type: str
Numeric Types: int, float, complex
Sequence Types: list, tuple, range
Mapping Type: dict
Set Types: set, frozenset
Boolean Type: bool
Binary Types: bytes, bytearray, memoryview
int float str
a=10 a=2.5 a=“GKTCS”
complex list tuple
a=2x
a = [ “python",
“Java", “Html“ ]
a = ( “python",
“Java", “Html“ )
Datatypes and Example
 When you assign a value to a variable data type is set :
a = {
"name" : “Amit",
"age" : 25 }
a = { “python",
“Java",
“Html“ }
a=True
complex bytes bytearray
a=2x a=b”GKTCS” a=bytearray(5)
dict set bool
Basic Datatypes
 Integers(for numbers)
a=4+3 #answer is 7, integer
addition
 Floats
a=5/2 #answer is 2.5
 Strings
Can use “ ” or ‘ ’ to specify.
“GKTCS” or ‘GKTCS’ are
same.
title()
Converts the
first character of
each word to
upper case
upper()
Converts a
string into upper
case
lower()
Converts a
string into lower
case
isdigit()
Returns True if all
characters in the
string are digits
isupper()
Returns True if
all characters in
the string are in
upper case.
swapcase()
Swaps cases, lower
case becomes
upper case and
vice versa
String Methods
x = 2
y =
“Amit"
print(x)
print(y)
Variables
 Variables are use to store data values.
 A variable is created when you assign a value to it.
Output
Rules for Python variables:
 A variable name must start with a letter or the underscore
character
 A variable name cannot start with a number
 A variable name can only contain alpha-numeric characters
and underscores (A-z, 0-9, and _ )
 Variable names are case-sensitive (age, Age and AGE are
three different variables)
#This would be a single line comment in Python
""" This would be a multiline comment in Python that
describes your code, your day, or anything you want it to
"""
Comments
Comments can be used to improve readability of the code.
1) Single-line comments
Simply create a line starting with the hash (#) character
2) Multi-line comments
Created by adding a delimiter (""") on each end of the
comment.
Output

More Related Content

PPTX
python basics Introduction_To_Python.pptx
PPTX
1-_Introduction_To_Python and the briefly
PDF
1-_Introduction_To_Python.pdf for education
PDF
Introduction_To_Python (1)that helps you
PPSX
Programming with Python
PPTX
Python for IoT
PDF
Python Programming
PDF
Introduction of Python
python basics Introduction_To_Python.pptx
1-_Introduction_To_Python and the briefly
1-_Introduction_To_Python.pdf for education
Introduction_To_Python (1)that helps you
Programming with Python
Python for IoT
Python Programming
Introduction of Python

Similar to 1-_Introduction_To_Python.pptx for developers (20)

PDF
prakash ppt (2).pdf
PPTX
Python introduction towards data science
PDF
OOPSLA Talk on Preon
PDF
Python-01| Fundamentals
PDF
Python (3).pdf
PDF
Zero to Hero - Introduction to Python3
PPTX
PPT on Python - illustrating Python for BBA, B.Tech
PPTX
python and perl
PDF
Pythonfinalppt 170822121204
PDF
Python final ppt
PDF
Python and Pytorch tutorial and walkthrough
ODP
Moving to Python 3
PDF
Python Viva Interview Questions PDF By ScholarHat
PPTX
Python (Data Analysis) cleaning and visualize
PPTX
Python Programming Basics for begginners
PPTX
Government Polytechnic Arvi-1.pptx
PDF
CPPDS Slide.pdf
PDF
🐍⚡ “Python Panache: Code Like a Pro, Not a Programmer!”
PPTX
python ppt | Python Course In Ghaziabad | Scode Network Institute
PPTX
python questionsfor class 8 students and
prakash ppt (2).pdf
Python introduction towards data science
OOPSLA Talk on Preon
Python-01| Fundamentals
Python (3).pdf
Zero to Hero - Introduction to Python3
PPT on Python - illustrating Python for BBA, B.Tech
python and perl
Pythonfinalppt 170822121204
Python final ppt
Python and Pytorch tutorial and walkthrough
Moving to Python 3
Python Viva Interview Questions PDF By ScholarHat
Python (Data Analysis) cleaning and visualize
Python Programming Basics for begginners
Government Polytechnic Arvi-1.pptx
CPPDS Slide.pdf
🐍⚡ “Python Panache: Code Like a Pro, Not a Programmer!”
python ppt | Python Course In Ghaziabad | Scode Network Institute
python questionsfor class 8 students and
Ad

Recently uploaded (20)

PDF
English Language Teaching from Post-.pdf
PDF
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PPTX
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
PPTX
Onica Farming 24rsclub profitable farm business
PDF
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
PPTX
Pharma ospi slides which help in ospi learning
PDF
FourierSeries-QuestionsWithAnswers(Part-A).pdf
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PDF
Business Ethics Teaching Materials for college
PDF
The Final Stretch: How to Release a Game and Not Die in the Process.
PPTX
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
PDF
Open folder Downloads.pdf yes yes ges yes
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
English Language Teaching from Post-.pdf
Chapter 2 Heredity, Prenatal Development, and Birth.pdf
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
Introduction_to_Human_Anatomy_and_Physiology_for_B.Pharm.pptx
TR - Agricultural Crops Production NC III.pdf
Saundersa Comprehensive Review for the NCLEX-RN Examination.pdf
Onica Farming 24rsclub profitable farm business
Mark Klimek Lecture Notes_240423 revision books _173037.pdf
O5-L3 Freight Transport Ops (International) V1.pdf
grade 11-chemistry_fetena_net_5883.pdf teacher guide for all student
Microbial diseases, their pathogenesis and prophylaxis
The Healthy Child – Unit II | Child Health Nursing I | B.Sc Nursing 5th Semester
Pharma ospi slides which help in ospi learning
FourierSeries-QuestionsWithAnswers(Part-A).pdf
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
Business Ethics Teaching Materials for college
The Final Stretch: How to Release a Game and Not Die in the Process.
UNDER FIVE CLINICS OR WELL BABY CLINICS.pptx
Open folder Downloads.pdf yes yes ges yes
2.FourierTransform-ShortQuestionswithAnswers.pdf
Ad

1-_Introduction_To_Python.pptx for developers