Complete the code to remove the first element from the list.
arr = [1, 2, 3, 4] arr.[1] # Remove first element print(arr)
Using pop(0) removes the first element from the list.
Complete the code to delete the first element using the del statement.
arr = [10, 20, 30, 40] del arr[1] # Delete first element print(arr)
The del statement deletes the element at index 0 using square brackets.
Fix the error in the code to remove the first element correctly.
arr = [5, 6, 7, 8] arr.[1](arr[0]) # Remove first element print(arr)
The remove method removes the first occurrence of the given value.
Fill in the blank to create a new list without the first element.
arr = [9, 8, 7, 6] new_arr = arr[1] # New list without first element print(new_arr)
Slicing with [1:] creates a new list starting from index 1 to the end.
Fill both blanks to remove the first element and print the updated list.
arr = [100, 200, 300, 400] arr.[1]([2]) # Remove first element print(arr)
Using pop(0) removes the first element. Printing arr shows the updated list.
