# using the clear() method - removes all elements
my_list = [1, 2, 3]
my_list.clear()
print(my_list)

# using the pop() method - removes the last element and returns it
my_list_two = [1, 2, 3]
last = my_list_two.pop()
print(my_list_two)
print(last)
# removes by value (first occurrence)

my_list_three = [1, 2, 3]
my_list_three.remove(1)
print(my_list_three)
6ed409cd1078ed8a0f325fdd3215488881a4ca10
<mask token>

<mask token>
my_list.clear()
print(my_list)
<mask token>
print(my_list_two)
print(last)
<mask token>
my_list_three.remove(1)
print(my_list_three)

my_list = [1, 2, 3]
my_list.clear()
print(my_list)
my_list_two = [1, 2, 3]
last = my_list_two.pop()
print(my_list_two)
print(last)
my_list_three = [1, 2, 3]
my_list_three.remove(1)
print(my_list_three)

# using the clear() method - removes all elements
my_list = [1, 2, 3]
my_list.clear()
print(my_list)

# using the pop() method - removes the last element and returns it
my_list_two = [1, 2, 3]
last = my_list_two.pop()
print(my_list_two)
print(last)
# removes by value (first occurrence)

my_list_three = [1, 2, 3]
my_list_three.remove(1)
print(my_list_three)