market=["brinjal","carrot","banana","apple",56]
number=[1,2,3,4,5,6,7,8]
print(market) #all the item in market will be displayed
print(market[2]) #in this item of market at 2nd position will be displayed
print(number) #in this all num in umber will be displayed
print(number[3]) #in this num at position at 3 will be displayed
number.sort()
number.reverse()
print(number[0:5]) #number from 0 to 5 will be displayed
print(number[ : :2]) #do do chord k yai number lega
print(number[ : :-1])
print(min(number)) #will print the min num in item
number.append(44) #will add 44 in the given set
print(number)
number.insert(2, 55) #why this is not working
number.remove(5) #not working
Comments
Post a Comment