Professional Documents
Culture Documents
PowerUP - 1st Python Boot Camp PPT
PowerUP - 1st Python Boot Camp PPT
PowerUP - 1st Python Boot Camp PPT
AGENDA
What is python?
Features of Python
Who uses Python?
Python Basics :
Data Types
– Numeric
– Lists
– Tuple
– Dictionary
– Strings
– Sets
Operators
Functions
Python Variables
2
What is Python ?
Created by Guido Van Rossum in 1989
High Level Interpreted language with
easy Syntax and Dynamic semantics
3
Features of Python
4
Who Uses Python?
5
4
Starting off with Python Basics
6
7
Data Types in Python
8
Data Types in Python
Numeric
Lists
Numeric Data Types are Types Examples
used to Store numerical
Tuples values in variables Integer 1, 5, 456
Numeric Data Types are Float 3.142
Dictionary not mutable
Complex 10 + 3j
Sets
Strings
9
Data Types in Python
Numeric
Lists
Lists are the same as arrays
Lists can have heterogeneous
Tuples data types in them
Lists are mutable
Dictionary
Sets Example :
a = [1, 'English', 3.142, 10+6j ]
Strings
10
Data Types in Python
Numeric
Tuples are sequences, just like lists
Lists
The differences between tuples and lists are, the tuples
cannot be changed unlike lists and tuples use parentheses,
Tuples
whereas lists use square brackets.
Dictionary
A tuple is a collection of objects which ordered and
immutable.
Sets
Strings
11
Data Types in Python
Numeric
Dictionary are used to hold key, Value
Lists Pairs
Dictionaries are immutable
Tuples
Dictionary
Example :
Sets Mydict = {'Name' : 'Akash',
'sign' : 'Libra' }
Strings
12
Data Types in Python
Numeric
Sets are unordered collection of
Lists unique elements
Sets are Mutable
Tuples
Dictionary
Sets Example :
Strings A = {1, 2, 3, 4, 4, 5 }
13
Data Types in Python
Numeric
Strings are a collection of Characters
Lists
They are written within single ('') or
double(“”)quotations marks.
Tuples
Strings are not mutable
Dictionary
Sets Example :
Strings string = 'Welcome to Python session'
14
Operators In Python
Operators are
Constructs you use
a manuplate data
Describes action
that need to be
done
Derive information
from data or
manipulate them to
obtain solutions
15
Functions In Python
Functions
Functions are block of code which are run whenever called
Functions reduce redundancy and increase readability
Python Supports pass by Object
16
Variables In Python
Variables are nothing but reserved memory locations to store values. This means that
when you create a variable you reserve some space in memory.
17
Thank You