In python, what is the simplest way to count the occurrence of the character ‘e’ in the string “hello friend”? I tried using .count but i’m not sure how to use it
Apprenez de manière plus efficace, gratuitement :
Introduction à Python
7.1M apprenants
Introduction à Java
4.7M apprenants
Introduction à C
1.5M apprenants
Introduction à HTML
7.5M apprenants