Python Programming - Arrays - Discussion
Discussion Forum : Arrays - General Questions (Q.No. 3)
3.
What will be the output of the following code snippet?
fruits = ['apple', 'banana', 'cherry']
fruits.remove('banana')
print(fruits)
Answer: Option
Explanation:
The
remove()
method is used to remove a specific element from the list.
fruits = ['apple', 'banana', 'cherry']
fruits.remove('banana')
print(fruits)
Discussion:
Be the first person to comment on this question !
Post your comments here:
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers