SlideShare a Scribd company logo
1 of 12
LET’S GO WITH
PYTHON
PREPARED BY…
V.VIDHIYA BHARATHY
ABOUT PYTHON
– First appearance at 20th Feb 1991.
– Developer: Python Software Foundation.
– Designed By: Guido Van Rossum.
– Stable Release: 2.7.14- Dec 17
3.6.4 – Dec 17
– File Extensions: .py, .pyc, .pyd, .pyo, .pyw, .pyz
– Popular IDE’s: pycharm, pydev, wing IDE, komodo IDX, Eric IDE
SPECIALITIES OF PYTHON
– High level programming language.
– Interpreted language.
– Dynamic type system .
– Automatic memory management.
– Object oriented programming.
– Functional and procedural programming.
– Large and comprehensive standard library.
BASIC COMMANDS
– Printing output: print(), print(‘welcome’), print(“welcome”)
– Getting input: input(),input(‘enter the value’)
int(input(‘getting integer number’), float(input(‘getting floating number’)
eval(input(‘getting input at any data type’), raw_input(‘getting input as string’)
VARIABLES
– name=‘star’  Assigning a string content to a variable
– rollno=1 Assigning a integer value to a variable
– Avg=92.39 Assigning a float value to a variable
– Dynamic memory allocation is followed here.
– We can remove the variable by “del” command
– del name
– Termination symbol “;” is not needed for every command but the Indentation
is important.
OPERATORS
– Arithmetic operators +,-,*,/
– Identity operator  “is”, “is not”
– Comparison operator <, >,!=, =
– Logical operator ”and”, “or”, “not”
– Membership operator ”in”
– Increment or decrement is only by x=x+1 (or) x+=1
– Boolean expression  “true”, ”false”
CONTROL STRUCTURES
– Conditional Branching  if, if…else, elif s-start
– Looping Statements  while and for statements e-end
st-step
if (): while(-----): for( I in range(s-,e-,st-)):
executable statement executable executable
elif(): statements statements
executable statement
else:
default statement
FUNCTIONS/MODULES
– Two types of functions are here, they are
standard library functions
User defined functions
– Standard library functions like math, random, time and etc…
– Three ways to import the library functions:
– import math
– import math as m
– from math import *
USER DEFINED FUNCTION
def function_name():
attributes required;
#Function_call using the function name
Function_name() function call
# (command line)
LIST
– Collection of certain values
– A=10 variable assignment
– A=[10,20,30] list(ie, like array )
– List will support all data type in a single storage variable for example,
B=[10,10.90,’start’]
– Dynamic addition, indexing, slicing are possible
TUPLE
– A=(1,2,3,4)
– The circular braces is used for tuple, and for list square braces is used.
– With this tuple we can retrieve the tuple and we can do indexing and slicing but
cannot do any modification into it.
– This is one of the specialities in python.
DICTIONARY
– Week={1:’sun’, 2:’mon’, 3:’tue’, 4:’wed’, 5:’thu’, 6:’fri’, 7:’sat’}
– The dictionary storage has two attribute in a element, that is first one is key
value : corresponding value.
– Retriving , deleting ,copying and updating elements can be done with this
storage.

More Related Content

What's hot

system management -shell programming by gaurav raikar
system management -shell programming by gaurav raikarsystem management -shell programming by gaurav raikar
system management -shell programming by gaurav raikarGauravRaikar3
 
Perl one-liners
Perl one-linersPerl one-liners
Perl one-linersdaoswald
 
Devry cis-170-c-i lab-7-of-7-sequential-files
Devry cis-170-c-i lab-7-of-7-sequential-filesDevry cis-170-c-i lab-7-of-7-sequential-files
Devry cis-170-c-i lab-7-of-7-sequential-filesnoahjamessss
 
Getting help in RHel 7 / CentOS 7
Getting help in RHel 7 / CentOS 7Getting help in RHel 7 / CentOS 7
Getting help in RHel 7 / CentOS 7Nilesh Vaghela
 
Unix Shell Scripting
Unix Shell ScriptingUnix Shell Scripting
Unix Shell ScriptingMustafa Qasim
 
Python Programming in Entertainment Industry: Coding Style
Python Programming in Entertainment Industry: Coding StylePython Programming in Entertainment Industry: Coding Style
Python Programming in Entertainment Industry: Coding StyleShuen-Huei Guan
 
Unix(introduction)
Unix(introduction)Unix(introduction)
Unix(introduction)meashi
 
Vim Script Programming
Vim Script ProgrammingVim Script Programming
Vim Script ProgrammingLin Yo-An
 
Unix Programming with Perl 2
Unix Programming with Perl 2Unix Programming with Perl 2
Unix Programming with Perl 2Kazuho Oku
 
PenTest using Python By Purna Chander
PenTest using Python By Purna ChanderPenTest using Python By Purna Chander
PenTest using Python By Purna Chandernforceit
 
Lesson 1 Linux System Fundamentals
Lesson 1 Linux System Fundamentals  Lesson 1 Linux System Fundamentals
Lesson 1 Linux System Fundamentals Sadia Bashir
 
Operating Systems 2
Operating Systems 2Operating Systems 2
Operating Systems 2hutchison
 
Operating Systems 1
Operating Systems 1Operating Systems 1
Operating Systems 1hutchison
 
COSCUP2012: How to write a bash script like the python?
COSCUP2012: How to write a bash script like the python?COSCUP2012: How to write a bash script like the python?
COSCUP2012: How to write a bash script like the python?Lloyd Huang
 
Make PHP Extension
Make PHP ExtensionMake PHP Extension
Make PHP ExtensionNyo Chou
 

What's hot (20)

system management -shell programming by gaurav raikar
system management -shell programming by gaurav raikarsystem management -shell programming by gaurav raikar
system management -shell programming by gaurav raikar
 
Perl one-liners
Perl one-linersPerl one-liners
Perl one-liners
 
Devry cis-170-c-i lab-7-of-7-sequential-files
Devry cis-170-c-i lab-7-of-7-sequential-filesDevry cis-170-c-i lab-7-of-7-sequential-files
Devry cis-170-c-i lab-7-of-7-sequential-files
 
Getting help in RHel 7 / CentOS 7
Getting help in RHel 7 / CentOS 7Getting help in RHel 7 / CentOS 7
Getting help in RHel 7 / CentOS 7
 
Unix Shell Scripting
Unix Shell ScriptingUnix Shell Scripting
Unix Shell Scripting
 
Python Programming in Entertainment Industry: Coding Style
Python Programming in Entertainment Industry: Coding StylePython Programming in Entertainment Industry: Coding Style
Python Programming in Entertainment Industry: Coding Style
 
PHP 5.3
PHP 5.3PHP 5.3
PHP 5.3
 
Unix(introduction)
Unix(introduction)Unix(introduction)
Unix(introduction)
 
Shell scripting
Shell scriptingShell scripting
Shell scripting
 
Vim Script Programming
Vim Script ProgrammingVim Script Programming
Vim Script Programming
 
Unix Programming with Perl 2
Unix Programming with Perl 2Unix Programming with Perl 2
Unix Programming with Perl 2
 
PenTest using Python By Purna Chander
PenTest using Python By Purna ChanderPenTest using Python By Purna Chander
PenTest using Python By Purna Chander
 
Lesson 1 Linux System Fundamentals
Lesson 1 Linux System Fundamentals  Lesson 1 Linux System Fundamentals
Lesson 1 Linux System Fundamentals
 
Operating Systems 2
Operating Systems 2Operating Systems 2
Operating Systems 2
 
Operating Systems 1
Operating Systems 1Operating Systems 1
Operating Systems 1
 
bash
bashbash
bash
 
Python for Penetration testers
Python for Penetration testersPython for Penetration testers
Python for Penetration testers
 
COSCUP2012: How to write a bash script like the python?
COSCUP2012: How to write a bash script like the python?COSCUP2012: How to write a bash script like the python?
COSCUP2012: How to write a bash script like the python?
 
Make PHP Extension
Make PHP ExtensionMake PHP Extension
Make PHP Extension
 
01 linux basics
01 linux basics01 linux basics
01 linux basics
 

Similar to Learn Python in 40 characters

Python for Linux System Administration
Python for Linux System AdministrationPython for Linux System Administration
Python for Linux System Administrationvceder
 
Workshop presentation hands on r programming
Workshop presentation hands on r programmingWorkshop presentation hands on r programming
Workshop presentation hands on r programmingNimrita Koul
 
Programming Under Linux In Python
Programming Under Linux In PythonProgramming Under Linux In Python
Programming Under Linux In PythonMarwan Osman
 
Introduction to Python Programming | InsideAIML
Introduction to Python Programming | InsideAIMLIntroduction to Python Programming | InsideAIML
Introduction to Python Programming | InsideAIMLVijaySharma802
 
An Overview Of Python With Functional Programming
An Overview Of Python With Functional ProgrammingAn Overview Of Python With Functional Programming
An Overview Of Python With Functional ProgrammingAdam Getchell
 
3 1. preprocessor, math, stdlib
3 1. preprocessor, math, stdlib3 1. preprocessor, math, stdlib
3 1. preprocessor, math, stdlib웅식 전
 
Introduction to Flutter - truly crossplatform, amazingly fast
Introduction to Flutter - truly crossplatform, amazingly fastIntroduction to Flutter - truly crossplatform, amazingly fast
Introduction to Flutter - truly crossplatform, amazingly fastBartosz Kosarzycki
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...DRVaibhavmeshram1
 
Kqueue : Generic Event notification
Kqueue : Generic Event notificationKqueue : Generic Event notification
Kqueue : Generic Event notificationMahendra M
 
Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubDevang Garach
 
A Head Start on Python Language
A Head Start on Python Language A Head Start on Python Language
A Head Start on Python Language saggi_decembre
 
Python introduction
Python introductionPython introduction
Python introductionRoger Xia
 

Similar to Learn Python in 40 characters (20)

Python for Linux System Administration
Python for Linux System AdministrationPython for Linux System Administration
Python for Linux System Administration
 
Let's Go-lang
Let's Go-langLet's Go-lang
Let's Go-lang
 
Workshop presentation hands on r programming
Workshop presentation hands on r programmingWorkshop presentation hands on r programming
Workshop presentation hands on r programming
 
Programming Under Linux In Python
Programming Under Linux In PythonProgramming Under Linux In Python
Programming Under Linux In Python
 
Python for dummies
Python for dummiesPython for dummies
Python for dummies
 
Python build your security tools.pdf
Python build your security tools.pdfPython build your security tools.pdf
Python build your security tools.pdf
 
Introduction to Python Programming | InsideAIML
Introduction to Python Programming | InsideAIMLIntroduction to Python Programming | InsideAIML
Introduction to Python Programming | InsideAIML
 
An Overview Of Python With Functional Programming
An Overview Of Python With Functional ProgrammingAn Overview Of Python With Functional Programming
An Overview Of Python With Functional Programming
 
3 1. preprocessor, math, stdlib
3 1. preprocessor, math, stdlib3 1. preprocessor, math, stdlib
3 1. preprocessor, math, stdlib
 
Scala fundamentals
Scala fundamentalsScala fundamentals
Scala fundamentals
 
Introduction to Flutter - truly crossplatform, amazingly fast
Introduction to Flutter - truly crossplatform, amazingly fastIntroduction to Flutter - truly crossplatform, amazingly fast
Introduction to Flutter - truly crossplatform, amazingly fast
 
Python
PythonPython
Python
 
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
Introduction to Python 01-08-2023.pon by everyone else. . Hence, they must be...
 
Kqueue : Generic Event notification
Kqueue : Generic Event notificationKqueue : Generic Event notification
Kqueue : Generic Event notification
 
Shell Scripting
Shell ScriptingShell Scripting
Shell Scripting
 
Basics of Linux Commands, Git and Github
Basics of Linux Commands, Git and GithubBasics of Linux Commands, Git and Github
Basics of Linux Commands, Git and Github
 
N flavors of streaming
N flavors of streamingN flavors of streaming
N flavors of streaming
 
A Head Start on Python Language
A Head Start on Python Language A Head Start on Python Language
A Head Start on Python Language
 
Go for Rubyists
Go for RubyistsGo for Rubyists
Go for Rubyists
 
Python introduction
Python introductionPython introduction
Python introduction
 

Recently uploaded

Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgsaravananr517913
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONjhunlian
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating SystemRashmi Bhat
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptNarmatha D
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsSachinPawar510423
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxRomil Mishra
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESNarmatha D
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptJasonTagapanGulla
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHC Sai Kiran
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadaditya806802
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm Systemirfanmechengr
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating SystemRashmi Bhat
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating SystemRashmi Bhat
 
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...Amil Baba Dawood bangali
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdfCaalaaAbdulkerim
 

Recently uploaded (20)

young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfgUnit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
Unit7-DC_Motors nkkjnsdkfnfcdfknfdgfggfg
 
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTIONTHE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
THE SENDAI FRAMEWORK FOR DISASTER RISK REDUCTION
 
Main Memory Management in Operating System
Main Memory Management in Operating SystemMain Memory Management in Operating System
Main Memory Management in Operating System
 
An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
Industrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.pptIndustrial Safety Unit-IV workplace health and safety.ppt
Industrial Safety Unit-IV workplace health and safety.ppt
 
Vishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documentsVishratwadi & Ghorpadi Bridge Tender documents
Vishratwadi & Ghorpadi Bridge Tender documents
 
Mine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptxMine Environment II Lab_MI10448MI__________.pptx
Mine Environment II Lab_MI10448MI__________.pptx
 
Industrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIESIndustrial Safety Unit-I SAFETY TERMINOLOGIES
Industrial Safety Unit-I SAFETY TERMINOLOGIES
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Solving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.pptSolving The Right Triangles PowerPoint 2.ppt
Solving The Right Triangles PowerPoint 2.ppt
 
Introduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECHIntroduction to Machine Learning Unit-3 for II MECH
Introduction to Machine Learning Unit-3 for II MECH
 
home automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasadhome automation using Arduino by Aditya Prasad
home automation using Arduino by Aditya Prasad
 
Class 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm SystemClass 1 | NFPA 72 | Overview Fire Alarm System
Class 1 | NFPA 72 | Overview Fire Alarm System
 
Virtual memory management in Operating System
Virtual memory management in Operating SystemVirtual memory management in Operating System
Virtual memory management in Operating System
 
Input Output Management in Operating System
Input Output Management in Operating SystemInput Output Management in Operating System
Input Output Management in Operating System
 
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
NO1 Certified Black Magic Specialist Expert Amil baba in Uae Dubai Abu Dhabi ...
 
Research Methodology for Engineering pdf
Research Methodology for Engineering pdfResearch Methodology for Engineering pdf
Research Methodology for Engineering pdf
 

Learn Python in 40 characters

  • 1. LET’S GO WITH PYTHON PREPARED BY… V.VIDHIYA BHARATHY
  • 2. ABOUT PYTHON – First appearance at 20th Feb 1991. – Developer: Python Software Foundation. – Designed By: Guido Van Rossum. – Stable Release: 2.7.14- Dec 17 3.6.4 – Dec 17 – File Extensions: .py, .pyc, .pyd, .pyo, .pyw, .pyz – Popular IDE’s: pycharm, pydev, wing IDE, komodo IDX, Eric IDE
  • 3. SPECIALITIES OF PYTHON – High level programming language. – Interpreted language. – Dynamic type system . – Automatic memory management. – Object oriented programming. – Functional and procedural programming. – Large and comprehensive standard library.
  • 4. BASIC COMMANDS – Printing output: print(), print(‘welcome’), print(“welcome”) – Getting input: input(),input(‘enter the value’) int(input(‘getting integer number’), float(input(‘getting floating number’) eval(input(‘getting input at any data type’), raw_input(‘getting input as string’)
  • 5. VARIABLES – name=‘star’  Assigning a string content to a variable – rollno=1 Assigning a integer value to a variable – Avg=92.39 Assigning a float value to a variable – Dynamic memory allocation is followed here. – We can remove the variable by “del” command – del name – Termination symbol “;” is not needed for every command but the Indentation is important.
  • 6. OPERATORS – Arithmetic operators +,-,*,/ – Identity operator  “is”, “is not” – Comparison operator <, >,!=, = – Logical operator ”and”, “or”, “not” – Membership operator ”in” – Increment or decrement is only by x=x+1 (or) x+=1 – Boolean expression  “true”, ”false”
  • 7. CONTROL STRUCTURES – Conditional Branching  if, if…else, elif s-start – Looping Statements  while and for statements e-end st-step if (): while(-----): for( I in range(s-,e-,st-)): executable statement executable executable elif(): statements statements executable statement else: default statement
  • 8. FUNCTIONS/MODULES – Two types of functions are here, they are standard library functions User defined functions – Standard library functions like math, random, time and etc… – Three ways to import the library functions: – import math – import math as m – from math import *
  • 9. USER DEFINED FUNCTION def function_name(): attributes required; #Function_call using the function name Function_name() function call # (command line)
  • 10. LIST – Collection of certain values – A=10 variable assignment – A=[10,20,30] list(ie, like array ) – List will support all data type in a single storage variable for example, B=[10,10.90,’start’] – Dynamic addition, indexing, slicing are possible
  • 11. TUPLE – A=(1,2,3,4) – The circular braces is used for tuple, and for list square braces is used. – With this tuple we can retrieve the tuple and we can do indexing and slicing but cannot do any modification into it. – This is one of the specialities in python.
  • 12. DICTIONARY – Week={1:’sun’, 2:’mon’, 3:’tue’, 4:’wed’, 5:’thu’, 6:’fri’, 7:’sat’} – The dictionary storage has two attribute in a element, that is first one is key value : corresponding value. – Retriving , deleting ,copying and updating elements can be done with this storage.