num_list = [1,2,3,4,5]
num_list.remove(2)
print(num_list)
- [1,2,4,5]
- [1,3,4,5]
- [3,4,5]
- [1,2,3]
Correct Answer:
- [1,3,4,5]
explanation:
num_list = [1,2,3,4,5]
num_list.pop(2)
[1,2,4,5]
num_list.remove(2)
[1,3,4,5]
What is the output of this code?
num_list = [1,2,3,4,5]
num_list.remove(2)
print(num_list)
Correct Answer:
explanation:
num_list = [1,2,3,4,5]
num_list.pop(2)
[1,2,4,5]
num_list.remove(2)
[1,3,4,5]
Latest Updates
No posts found in this category.