Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def replacer(word):
- vowels = ('a', 'e', 'i', 'o', 'u')
- const = ('b','c','d','f','g','h','j','k','l','m','n','p','q','r','s','t','v','w','x','y','z')
- for c in word:
- if c.lower() in vowels:
- word = word.replace(c,"#")
- if c.lower() in const:
- word = word.replace(c,"@")
- print(word)
- name = raw_input('Enter your name: ')
- replacer(name)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement