Guest User

Untitled

a guest
Dec 7th, 2017
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. word = str(input("Please enter a word: "))
  2. word = word.lower()
  3.  
  4. vowels = ["a", "e","i","o","u"]
  5.  
  6. if word[0] in vowels:
  7. way = "way"
  8. print(word+way)
  9.  
  10. else:
  11. temp = word[0]
  12. for i in range (len(word)-1):
  13. temp = word[i]
  14. word[i] = word[i+1]
  15. word[i+1] = temp
  16. print(word)
Add Comment
Please, Sign In to add comment