Pythonppt 230111072927 1c7002a5
Pythonppt 230111072927 1c7002a5
(Session 2021-2022)
DEPARTMENT ……………………………………
………………………..CLZ NAME…………………….
UNI NAME………………………………….
SEPTEMBER, 2022
Content
Training Introduction
What is Python
Data Types
Conclusion
References
What is Python
Python is an interpreted, object-oriented, high-level
programming language with dynamic semantics.
Number
String
List
Dictionary
Touple
Sets
Data Types
NUMBERS –
1. Integer Number Data Type
2. Floating Number Data Type
3. Complex Number Data Type
DICTIONARY -
A dictionary is a collection which is ordered, changeable and does
not allow duplicates.
Dictionary are used to store data value in key:value pairs.
Ex. dict = {1: “a”,2:“b”}.
Data Types
LIST –
List is a collection of different values of different types of items.
The item in the list are separated with the comma(,) and enclosed
with the square brackets[].
a=[1,2,"sham","ram",21.5]
STRING –
Sequence of letters enclosed in quotes is called string or string
literal or constant.
Python supports both form of quotes i.e.
‘Hello’ , “Hello”
Data Types
SETS -
A type of array, which is unordered as well as unindexed. It
doesn’t allow Duplicate members.
Ex. Set1 = {“ram”, “shyam”}
TUPLES –
“t = (1,2,3,one)”.
A simple immutable ordered sequence of items
Items can be of mixed types, including collection types..
Python Loops