Source Code:
(back to article)
fruits = ["banana", "apple", "orange", "apple"] count = fruits.count("apple") print(count) # Output: 2
Result:
Report an issue