New course! Every coder should learn Generative AI!
Try a free lesson+ 2
What is count function??How it works ??
Plz give example and explain me
1 Answer
+ 3
It count number of occurrence in a list.
list = [1, 1, 2]
print(list.count(1)) #2
Plz give example and explain me