list 1- list 2 python code example
Example 1: get an item out of a list python
#to get the LAST item out of a list:
things = ["apple", "book", 3, ["another list", 85], "orange"]
last = things.pop()
print(last)
#it should output "orange"
Example 2: how to make a list in python
list = [1, 2, 3, 4, 5, 6, 7]