You are on page 1of 1

indexing

there are two types of indexing


postive direction it will start from 0 to n-1
negative indexing it will start from -1 to -n

list

-homogenious, heterogenious data can stored


-order is preserver
-list is mutable
-sequence of collection of data
- surrounded by square bracket
- we can have duplicate entry inside the list

tuple

-homogenious, heterogenious data can stored


-order is preserver
-list is immutable----------------------------diff
-sequence of collection of data
- surrounded by parenthesis/circular bracket----diff
- we can have duplicate entry inside the tuple

tuple
calender 1----30/31
1,2,3,4,5,6,7-----same
days -- monday tues wed
pan no ---
adhar card num ---
mob no --
roll no in class
passport
emp -- id, name, salary, designation, dept, bank details, dob
id -- 10 --collectively (12312,89081,11998,12678) immutable

string

'mayuri'

set
duplicates not allow ------------------diff
pairs -- signature id pairs id -- 2 , 3

len(set(signature id))
order is not preserved ---------diff
bracket --- {} -----------------diff
curly bracket
mutable

dictionary

{"one":1,"two":2,"male":"M","Female":"F"}

You might also like