+ 2

What is count function??How it works ??

Plz give example and explain me

5th Jul 2019, 5:59 PM
Harsha
Harsha - avatar
1 Resposta
+ 3
It count number of occurrence in a list. list = [1, 1, 2] print(list.count(1)) #2
5th Jul 2019, 6:02 PM
Drax
Drax - avatar