daily pastebin goal
39%
SHARE
TWEET

Untitled

a guest Dec 7th, 2017 37 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top