Monday, 24 June 2019

Ordered

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

No comments:

Post a Comment

Files with Exception handling

#Ask the user to take two input integer values var a,b try:     a=int(input("enter any integer value:"))     b=int(input(&qu...