Remove the last element of this list and assign it to a new variable code example
Example: how to remove last item from list python
even_numbers = [2,4,6,8,10,12,15] # 15 is an odd number
# if you wanna remove 15 from the list
even_numbers.pop()
even_numbers = [2,4,6,8,10,12,15] # 15 is an odd number
# if you wanna remove 15 from the list
even_numbers.pop()