SlideShare a Scribd company logo
3
Most read
5
Most read
Introduction to Python Basics
Programming
www.collaborationtech.co.in
Bengaluru INDIA
Presentation By
Ramananda M.S Rao
Introduction to Python Programming
Content
Introduction
Applications and Frameworks
Get Started with programming
Variables and Data Types
Operators and Expressions
Control Structure
Sequence Types
Dictionaries and Sets
List Comprehensions
Functions
Local, Non Local & Global Variables
Anonymous and Lambda Functions
www.collaborationtech.co.in
Introduction to Python Programming
Introduction
 Open source general-purpose. Multiplatform programming
language
 Object Oriented, Procedural, Functional
 Easy to interface with C/ObjC/Java/Fortran
 Easy to interface with C++ (via SWIG)
 Great interactive environment
 Python 'philosophy' emphasis readability, clarity and simplicity
 The Interactive Interpreter
 it is very easy to learn and understand.
 It is extensible, you can easily plug new modules in your Python
installation and extend its functionality
www.collaborationtech.co.in
Introduction to Python Programming
Get Started with Python program
IDLE helps you program in Python by:
color-coding your program code
debugging
auto-indent
interactive shell
www.collaborationtech.co.in
Introduction to Python Programming
Get Started with Python program
#one.py
x = 34
y = 'Hello'
y = y + 'World'
print(x)
print(y)
Open new window and type in the program save as one.py and then run module.
Output:
34
HelloWorld
# kbinput.py
name = input('What is your name:')
print('It is good to meet you mr ', name)
www.collaborationtech.co.in
Introduction to Python Programming
# Data Format example
age = 25
name = 'Swaroop'
print('{0} is {1} years old'.format(name, age))
print('Why is {0} playing with that python?'.format(name))
data=1/6
print('{0:.3}'.format(data) )
# decimal (.) precision of 3 for float
# fill with underscores (_) with the text centered (^) to 11 width
print('{0:_^11}'.format('hello') )
print( '{name} wrote {book}'.format(name='Swaroop', book='A Byte of Python') )
www.collaborationtech.co.in
Introduction to Python Programming
person = input(’Enter your name: ’)
greeting = ’Hello {}!’.format(person)
print(greeting)
#Another Example
applicant = input(‘Enter the applicant’s name: ‘)
interviewer = input(‘Enter the interviewer’s name: ‘)
time = input(‘Enter the appointment time: ‘)
print(interviewer + ’ will interview ’ + applicant + ’ at ’ + time +’.’)
print(’{} will interview {} at {}’.format(interviewer, applicant, time))
www.collaborationtech.co.in
Introduction to Python Programming
Control Structure
 If and elif Statement
 While statement
 For Loop
 Break Statement
 Continue Statement
www.collaborationtech.co.in
Introduction to Python Programming
# Using If and elif Statement - compute.py
a = input('enter value a:')
b = input('enter value b:')
x= int(a)
y=int(b)
ch = input('enter your option(1.add 2.subtract):')
choice= int(ch)
if choice == 1:
print('sum of ' + a + 'and ' + b +'=', x+ y )
elif choice == 2:
print ( ' subtraction of '+ a + ' and ' + b + 'is ' , x- y )
else:
print('Invalid Option:')
www.collaborationtech.co.in
Introduction to Python Programming
# Using for Statement
print('Using for loop Statement')
for x in range(20):
print('Still in the loop: ', x)
print('Outside of the for loop')
# for with range
for x in range(3,20):
print('Still in the loop: ‘, x)
print ('Outside of the loop')
val=input('enter the value for x')
x=int(val)
for i in range(x):
if(i%2==0):
continue
print(‘value:’,i)
print('done')
www.collaborationtech.co.in
Follow us on Social
Facebook: https://www.facebook.com/collaborationtechnologies/
Twitter : https://twitter.com/collaboration09
Google Plus : https://plus.google.com/100704494006819853579
LinkedIn : https://www.linkedin.com/in/ramananda-rao-a2012545
Instagram : https://instagram.com/collaborationtechnologies
YouTube :
https://www.youtube.com/channel/UCm9nK56LRbWSqcYWbzs8CUg
Skype : facebook:ramananda.rao.7
WhatsApp : +91 9886272445
www.collaborationtech.co.in
THANK YOU
About Us

More Related Content

PPTX
Python programming
Ashwin Kumar Ramasamy
 
PPTX
Python 3 Programming Language
Tahani Al-Manie
 
PPTX
Phython Programming Language
R.h. Himel
 
PPT
Python Programming ppt
ismailmrribi
 
PPT
Intro to Python
primeteacher32
 
PPTX
Python basics
RANAALIMAJEEDRAJPUT
 
PDF
What Are Python Modules? Edureka
Edureka!
 
PPT
Python Programming Language
Dr.YNM
 
Python programming
Ashwin Kumar Ramasamy
 
Python 3 Programming Language
Tahani Al-Manie
 
Phython Programming Language
R.h. Himel
 
Python Programming ppt
ismailmrribi
 
Intro to Python
primeteacher32
 
Python basics
RANAALIMAJEEDRAJPUT
 
What Are Python Modules? Edureka
Edureka!
 
Python Programming Language
Dr.YNM
 

What's hot (20)

PDF
Python final ppt
Ripal Ranpara
 
PPTX
Python - An Introduction
Swarit Wadhe
 
ODP
Python Modules
Nitin Reddy Katkam
 
PPTX
Modules in Python Programming
sambitmandal
 
PDF
Introduction to python programming
Srinivas Narasegouda
 
PDF
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Edureka!
 
PPTX
Python basics
Hoang Nguyen
 
PPT
Python ppt
Mohita Pandey
 
PPTX
PYTHON FEATURES.pptx
MaheShiva
 
PPTX
Chapter 03 python libraries
Praveen M Jigajinni
 
PDF
Python tutorial
Vijay Chaitanya
 
PDF
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Edureka!
 
PPTX
Packages In Python Tutorial
Simplilearn
 
PPT
1.python interpreter and interactive mode
ManjuA8
 
PDF
Python basic
Saifuddin Kaijar
 
PDF
Python made easy
Abhishek kumar
 
PPTX
Benefits & features of python |Advantages & disadvantages of python
paradisetechsoftsolutions
 
PDF
Basic Concepts in Python
Sumit Satam
 
PPTX
Beginning Python Programming
St. Petersburg College
 
PPTX
Introduction to-python
Aakashdata
 
Python final ppt
Ripal Ranpara
 
Python - An Introduction
Swarit Wadhe
 
Python Modules
Nitin Reddy Katkam
 
Modules in Python Programming
sambitmandal
 
Introduction to python programming
Srinivas Narasegouda
 
Python Course | Python Programming | Python Tutorial | Python Training | Edureka
Edureka!
 
Python basics
Hoang Nguyen
 
Python ppt
Mohita Pandey
 
PYTHON FEATURES.pptx
MaheShiva
 
Chapter 03 python libraries
Praveen M Jigajinni
 
Python tutorial
Vijay Chaitanya
 
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Edureka!
 
Packages In Python Tutorial
Simplilearn
 
1.python interpreter and interactive mode
ManjuA8
 
Python basic
Saifuddin Kaijar
 
Python made easy
Abhishek kumar
 
Benefits & features of python |Advantages & disadvantages of python
paradisetechsoftsolutions
 
Basic Concepts in Python
Sumit Satam
 
Beginning Python Programming
St. Petersburg College
 
Introduction to-python
Aakashdata
 
Ad

Viewers also liked (20)

PPTX
visual basic .net
ronald_a_go
 
PPTX
Java vs .net (beginners)
Ravi Vishwakarma
 
PPT
Difference between Java and c#
Sagar Pednekar
 
PDF
Why Java Sucks and C# Rocks (Final)
jeffz
 
PPT
Introduction to Python
amiable_indian
 
PPTX
Php Vs Phyton
Francis Guison
 
PPTX
.NET and C# Introduction
Siraj Memon
 
PPSX
Introduction to .net framework
Arun Prasad
 
PDF
Learn 90% of Python in 90 Minutes
Matt Harrison
 
PPT
Introduction to Python
Nowell Strite
 
PPTX
Introduction To Programming with Python-1
Syed Farjad Zia Zaidi
 
PDF
PythonIntro
webuploader
 
PDF
Python Tutorial
AkramWaseem
 
PPTX
Python Programming Essentials - M6 - Code Blocks and Indentation
P3 InfoTech Solutions Pvt. Ltd.
 
PDF
Python - basics
Jéferson Machado
 
PDF
AmI 2015 - Python basics
Luigi De Russis
 
PDF
python codes
tusharpanda88
 
PDF
Python Basics
tusharpanda88
 
PDF
Python Workshop
Saket Choudhary
 
PPTX
Introduction to the basics of Python programming (part 1)
Pedro Rodrigues
 
visual basic .net
ronald_a_go
 
Java vs .net (beginners)
Ravi Vishwakarma
 
Difference between Java and c#
Sagar Pednekar
 
Why Java Sucks and C# Rocks (Final)
jeffz
 
Introduction to Python
amiable_indian
 
Php Vs Phyton
Francis Guison
 
.NET and C# Introduction
Siraj Memon
 
Introduction to .net framework
Arun Prasad
 
Learn 90% of Python in 90 Minutes
Matt Harrison
 
Introduction to Python
Nowell Strite
 
Introduction To Programming with Python-1
Syed Farjad Zia Zaidi
 
PythonIntro
webuploader
 
Python Tutorial
AkramWaseem
 
Python Programming Essentials - M6 - Code Blocks and Indentation
P3 InfoTech Solutions Pvt. Ltd.
 
Python - basics
Jéferson Machado
 
AmI 2015 - Python basics
Luigi De Russis
 
python codes
tusharpanda88
 
Python Basics
tusharpanda88
 
Python Workshop
Saket Choudhary
 
Introduction to the basics of Python programming (part 1)
Pedro Rodrigues
 
Ad

Similar to Introduction to Python Basics Programming (20)

PPTX
Python Basics
Pooja B S
 
PPTX
Python component in mule
Ramakrishna kapa
 
PDF
5 getting started with Python 1st puc syllubus
afshanaffu05
 
PDF
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
KosmikTech1
 
PPTX
INTRODUCTION TO PYTHON PROGRAMMING .pptx
SanthoshRajan16
 
PDF
Introduction of Python
ZENUS INFOTECH INDIA PVT. LTD.
 
PPTX
Introduction to Python Basics Programming
Raveendra R
 
PPTX
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
Nandakumar P
 
DOCX
PYTHON-Unit-I-Notes for python learnerss
Sree Saraswathi Thiagaraja College
 
PDF
Python Programming by Dr. C. Sreedhar.pdf
Sreedhar Chowdam
 
PPTX
Python Tutorial for Beginner
rajkamaltibacademy
 
PDF
Py tut-handout
Ramachandra Dama
 
PPTX
Python Programming
shahid sultan
 
DOCX
INTERNSHIP REPORT.docx
21IT200KishorekumarI
 
PPT
Introduction to python
Ranjith kumar
 
PPTX
Getting started with the basics of python
asharjavidaj
 
PDF
kecs105.pdf
A23AyushRajBaranwal
 
PDF
Pyhton-1a-Basics.pdf
Mattupallipardhu
 
PDF
Core python programming tutorial
Amarjeetsingh Thakur
 
PPTX
Introduction-to-Python.pptx grade 9 ICT.
NeilIvanCasas1
 
Python Basics
Pooja B S
 
Python component in mule
Ramakrishna kapa
 
5 getting started with Python 1st puc syllubus
afshanaffu05
 
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
KosmikTech1
 
INTRODUCTION TO PYTHON PROGRAMMING .pptx
SanthoshRajan16
 
Introduction of Python
ZENUS INFOTECH INDIA PVT. LTD.
 
Introduction to Python Basics Programming
Raveendra R
 
UNIT-1 : 20ACS04 – PROBLEM SOLVING AND PROGRAMMING USING PYTHON
Nandakumar P
 
PYTHON-Unit-I-Notes for python learnerss
Sree Saraswathi Thiagaraja College
 
Python Programming by Dr. C. Sreedhar.pdf
Sreedhar Chowdam
 
Python Tutorial for Beginner
rajkamaltibacademy
 
Py tut-handout
Ramachandra Dama
 
Python Programming
shahid sultan
 
INTERNSHIP REPORT.docx
21IT200KishorekumarI
 
Introduction to python
Ranjith kumar
 
Getting started with the basics of python
asharjavidaj
 
kecs105.pdf
A23AyushRajBaranwal
 
Pyhton-1a-Basics.pdf
Mattupallipardhu
 
Core python programming tutorial
Amarjeetsingh Thakur
 
Introduction-to-Python.pptx grade 9 ICT.
NeilIvanCasas1
 

More from Collaboration Technologies (17)

PPTX
Introduction to Core Java Programming
Collaboration Technologies
 
PPTX
Introduction to Database SQL & PL/SQL
Collaboration Technologies
 
PPTX
Introduction to Advanced Javascript
Collaboration Technologies
 
PPTX
Introduction to AngularJS
Collaboration Technologies
 
PPTX
Introduction to Bootstrap
Collaboration Technologies
 
PPTX
Introduction to Hibernate Framework
Collaboration Technologies
 
PPTX
Introduction to HTML4
Collaboration Technologies
 
PPTX
Introduction to HTML5
Collaboration Technologies
 
PPTX
Introduction to JavaScript Programming
Collaboration Technologies
 
PPTX
Introduction to JPA Framework
Collaboration Technologies
 
PPTX
Introduction to jQuery
Collaboration Technologies
 
PPTX
Introduction to Perl Programming
Collaboration Technologies
 
PPTX
Introduction to PHP
Collaboration Technologies
 
PPTX
Introduction to Spring Framework
Collaboration Technologies
 
PPTX
Introduction to Struts 2
Collaboration Technologies
 
PPTX
Introduction to JSON & AJAX
Collaboration Technologies
 
PPTX
Introduction to Node.JS
Collaboration Technologies
 
Introduction to Core Java Programming
Collaboration Technologies
 
Introduction to Database SQL & PL/SQL
Collaboration Technologies
 
Introduction to Advanced Javascript
Collaboration Technologies
 
Introduction to AngularJS
Collaboration Technologies
 
Introduction to Bootstrap
Collaboration Technologies
 
Introduction to Hibernate Framework
Collaboration Technologies
 
Introduction to HTML4
Collaboration Technologies
 
Introduction to HTML5
Collaboration Technologies
 
Introduction to JavaScript Programming
Collaboration Technologies
 
Introduction to JPA Framework
Collaboration Technologies
 
Introduction to jQuery
Collaboration Technologies
 
Introduction to Perl Programming
Collaboration Technologies
 
Introduction to PHP
Collaboration Technologies
 
Introduction to Spring Framework
Collaboration Technologies
 
Introduction to Struts 2
Collaboration Technologies
 
Introduction to JSON & AJAX
Collaboration Technologies
 
Introduction to Node.JS
Collaboration Technologies
 

Recently uploaded (20)

PDF
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
PDF
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
PPTX
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
PPTX
Coupa-Overview _Assumptions presentation
annapureddyn
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PDF
Doc9.....................................
SofiaCollazos
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
PDF
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
This slide provides an overview Technology
mineshkharadi333
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PPTX
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 
Orbitly Pitch Deck|A Mission-Driven Platform for Side Project Collaboration (...
zz41354899
 
The Evolution of KM Roles (Presented at Knowledge Summit Dublin 2025)
Enterprise Knowledge
 
How to Build a Scalable Micro-Investing Platform in 2025 - A Founder’s Guide ...
Third Rock Techkno
 
Coupa-Overview _Assumptions presentation
annapureddyn
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Doc9.....................................
SofiaCollazos
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
A Day in the Life of Location Data - Turning Where into How.pdf
Precisely
 
Unlocking the Future- AI Agents Meet Oracle Database 23ai - AIOUG Yatra 2025.pdf
Sandesh Rao
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
This slide provides an overview Technology
mineshkharadi333
 
Software Development Methodologies in 2025
KodekX
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Comunidade Salesforce São Paulo - Desmistificando o Omnistudio (Vlocity)
Francisco Vieira Júnior
 

Introduction to Python Basics Programming

  • 1. Introduction to Python Basics Programming www.collaborationtech.co.in Bengaluru INDIA Presentation By Ramananda M.S Rao
  • 2. Introduction to Python Programming Content Introduction Applications and Frameworks Get Started with programming Variables and Data Types Operators and Expressions Control Structure Sequence Types Dictionaries and Sets List Comprehensions Functions Local, Non Local & Global Variables Anonymous and Lambda Functions www.collaborationtech.co.in
  • 3. Introduction to Python Programming Introduction  Open source general-purpose. Multiplatform programming language  Object Oriented, Procedural, Functional  Easy to interface with C/ObjC/Java/Fortran  Easy to interface with C++ (via SWIG)  Great interactive environment  Python 'philosophy' emphasis readability, clarity and simplicity  The Interactive Interpreter  it is very easy to learn and understand.  It is extensible, you can easily plug new modules in your Python installation and extend its functionality www.collaborationtech.co.in
  • 4. Introduction to Python Programming Get Started with Python program IDLE helps you program in Python by: color-coding your program code debugging auto-indent interactive shell www.collaborationtech.co.in
  • 5. Introduction to Python Programming Get Started with Python program #one.py x = 34 y = 'Hello' y = y + 'World' print(x) print(y) Open new window and type in the program save as one.py and then run module. Output: 34 HelloWorld # kbinput.py name = input('What is your name:') print('It is good to meet you mr ', name) www.collaborationtech.co.in
  • 6. Introduction to Python Programming # Data Format example age = 25 name = 'Swaroop' print('{0} is {1} years old'.format(name, age)) print('Why is {0} playing with that python?'.format(name)) data=1/6 print('{0:.3}'.format(data) ) # decimal (.) precision of 3 for float # fill with underscores (_) with the text centered (^) to 11 width print('{0:_^11}'.format('hello') ) print( '{name} wrote {book}'.format(name='Swaroop', book='A Byte of Python') ) www.collaborationtech.co.in
  • 7. Introduction to Python Programming person = input(’Enter your name: ’) greeting = ’Hello {}!’.format(person) print(greeting) #Another Example applicant = input(‘Enter the applicant’s name: ‘) interviewer = input(‘Enter the interviewer’s name: ‘) time = input(‘Enter the appointment time: ‘) print(interviewer + ’ will interview ’ + applicant + ’ at ’ + time +’.’) print(’{} will interview {} at {}’.format(interviewer, applicant, time)) www.collaborationtech.co.in
  • 8. Introduction to Python Programming Control Structure  If and elif Statement  While statement  For Loop  Break Statement  Continue Statement www.collaborationtech.co.in
  • 9. Introduction to Python Programming # Using If and elif Statement - compute.py a = input('enter value a:') b = input('enter value b:') x= int(a) y=int(b) ch = input('enter your option(1.add 2.subtract):') choice= int(ch) if choice == 1: print('sum of ' + a + 'and ' + b +'=', x+ y ) elif choice == 2: print ( ' subtraction of '+ a + ' and ' + b + 'is ' , x- y ) else: print('Invalid Option:') www.collaborationtech.co.in
  • 10. Introduction to Python Programming # Using for Statement print('Using for loop Statement') for x in range(20): print('Still in the loop: ', x) print('Outside of the for loop') # for with range for x in range(3,20): print('Still in the loop: ‘, x) print ('Outside of the loop') val=input('enter the value for x') x=int(val) for i in range(x): if(i%2==0): continue print(‘value:’,i) print('done') www.collaborationtech.co.in
  • 11. Follow us on Social Facebook: https://www.facebook.com/collaborationtechnologies/ Twitter : https://twitter.com/collaboration09 Google Plus : https://plus.google.com/100704494006819853579 LinkedIn : https://www.linkedin.com/in/ramananda-rao-a2012545 Instagram : https://instagram.com/collaborationtechnologies YouTube : https://www.youtube.com/channel/UCm9nK56LRbWSqcYWbzs8CUg Skype : facebook:ramananda.rao.7 WhatsApp : +91 9886272445 www.collaborationtech.co.in THANK YOU