Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- s = "haha federica ciao prova davide 33 55 423"
- def removeVocale(s):
- string = ""
- for c in s:
- if c not in "aeiouAEIOU":
- string += c
- return string
- def f(s):
- l = s.split()
- d = {}
- for el in l:
- if len(el) % 2 == 0:
- s = removeVocale(el)
- k = len(s)
- if s.isdigit():
- k = int(s)
- d[s] = k
- print(d)
- f(s)
Add Comment
Please, Sign In to add comment