Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def repeticionesLetra(palabra, chequeadas):
- return sum([1 for p in palabra if p in chequeadas]) #Esto se escribe como
- def repeticionesLetra(palabra, chequeadas):
- suma = 0
- for p in palabra:
- if p in chequeadas:
- suma += 1
- return suma
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement