grocery = ["harpic", "vim bar", "deodrant", "bhindi", "lollypop", 56] # creates a list
# print(grocery)
# accesing the list
# print(grocery[0])
# numbers = [2, 7, 9, 11, 3]
# numbers.sort() # sorts the number
# numbers.reverse() # reverses the number
# print(numbers[::])
# print(len(numbers))
# print(max(numbers))
# print(numbers.append(7)) # add 7 at the end
# numbers.insert(1, 45) # insert 45 at 1 index
# numbers.remove(9) # removes a number (not index)
# numbers.pop() # removes the last element
# print(numbers)
# numbers = [] # create a blank list
# numbers[1] = 98
# print(numbers)
# mutable - can change (mutable); imutable - cannot change (for e.g. tuple)
# tp = (1, 2, 3) # creates a tupple. cannot be changed
# tp = (1, ) # for a single object tupple, add an exteaa column
# print(tp)
a = 1
b = 1
a, b = b, a # interchanges the values of a and b