How we specified in the object and the same order the data is stored in the memory, same order we will get the output, indexing also applicable.
a=[10,"raj", 12.45,True,2+3j]
print(a)
print(a[0])
#output: Same order only the output displays
10,"raj", 12.45,True,2+3j
10
a=[10,"raj", 12.45,True,2+3j]
print(a)
print(a[0])
#output: Same order only the output displays
10,"raj", 12.45,True,2+3j
10
No comments:
Post a Comment