Skip to content

Commit

Permalink
Add pythomatiza 10 examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielbdornas committed Aug 14, 2024
1 parent 6b4050f commit 26d905d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions 010/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
def count_letters(letter, input_word):
# TODO: Retorne o número de letras (letter) no texto informado (string)
# ou 0 caso não haja nenhuma correspodência
count = 0
for item in input_word:
if item == letter:
count +=1
return count

0 comments on commit 26d905d

Please sign in to comment.