Source Code:
(back to article)
my_list = [1, 2, 3, 4, 5] first_item = my_list.pop(0) print(first_item) # Output: 1 print(my_list) # Output: [2, 3, 4, 5]
Result:
Report an issue