You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

10 lines
217 B

9 months ago
  1. lettreRech = input()
  2. nbLignes = int(input())
  3. count = 0
  4. for loop in range(nbLignes):
  5. texte = input()
  6. for lettre in range(len(texte)):
  7. if texte[lettre] == lettreRech:
  8. count +=1
  9. print(count)