Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def contaparole(testo, parola):
- count=0
- testo=testo.split(" ")
- for m in testo:
- if parola in m:
- count=count+1
- return count
- x = input("inserire testo: ")
- y = input("inserire parola da cercare: ")
- print (contaparole(x,y))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement