Advertisement
Nik-Cris

Esercizio2

Nov 17th, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. def noAOrI(somestring):
  2. for ch in somestring:
  3. if(ch!="a"):
  4. somestring = somestring.replace("a","*")
  5.  
  6. if(ch!="i"):
  7. somestring = somestring.replace("i","*")
  8. return somestring
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement