In [6]:
a1 = [10, 20, 30, 40, 50]
In [7]:
a1
Out[7]:
In [8]:
arr[2]
Out[8]:
In [14]:
stud1={'Roll':1,"name":"venkat","age":28,"pass":True}
In [10]:
stud1
Out[10]:
In [12]:
stud1["name"]
Out[12]:
In [13]:
stud1["age"]
Out[13]:
In [15]:
stud1["pass"]
Out[15]:
In [16]:
stud1.values()
Out[16]:
In [18]:
stud1.pop("name")
Out[18]:
In [19]:
stud1
Out[19]:
In [20]:
stud1["address"]="Hyderabad"
In [21]:
stud1
Out[21]:
No comments:
Post a Comment