Python Data Objects
Python Data Objects
Python Data
Objects With
Memes
Abhi maza
aayega na bhidu KYA BAAT HAI
Lists
List in Python are declared using square brackets [ ]
Lists
Whenever we try to
add, delete or replace an
element in a list, the list
be like:
Ye bhi theek hai
Tuple
Tuple in Python are declared using round brackets ( )
1) Tuples are just like lists (can hold data of any data
type or any data object into it) but are immutable.
2) This means, once a tuple has been declared,
3) We can’t Add a new element to it.
4) Neither Delete an existing element.
5) Nor Replace an existing element.
Value
Key
Sets
Sets in Python are declared using curly brackets
{ element-1, element-2, element-3 }
A set can hold only unique data points which get
sorted automatically within it.
Me Sets
Strings
Strings in Python are declared using inverted
commas " " , ' ', ''' '''
Strings are used to preserve textual,
alphanumeric data but can hold anything in it.
Strings are immutable data objects.
String
String
List
Tuple
Don’t Forget To
SAVE
&
Follow For More