#Assignment
list1 = [10, 20, 30, 40]
list2 = [100, 200, 300, 400]
list1.sort()
print(list1)
list2.sort(reverse= True)
print(list2)
[10, 20, 30, 40] [400, 300, 200, 100]
#1
list1 = [5, 10, 15, 20, 25, 50, 20]
list1[3]=200
print(list1)
#2
list1 = [5, 20, 15, 20, 25, 50, 20]
print(list1.pop(1))
print(list1.pop(5))
print(list1.pop(3))
print(list1)
20 20 25 [5, 15, 20, 50]
#3
list1 = [100, 400, 150.50, 600]
list1.sort()
print(list1)
list1.sort(reverse=True)
print(list1)
[100, 150.5, 400, 600] [600, 400, 150.5, 100]