title: Exchange vowels from user input in python
body: <p>I want to have the user input a sentence and have the program print out the same sentence <strong>except</strong> having the vowels swapped as follows:</p>
  
  <ul>
  <li>A = E</li>
  <li>E = I</li>
  <li>I = O</li>
  <li>O = U</li>
  <li>U = A</li>
  </ul>
  
  <p>I have started writing the following code, but is there a more efficient way to do this other than telling the program what to do for every single letter?</p>
  
  <pre><code>inp = input("Enter a sentence: ")
  for letter in inp:
      if letter == "a":
          print("e", end = "")
      if letter == "b":
          print("b", end = "")
      if letter == "c":
          print("c", end = "")
      if letter == "d":
          print("d", end = "")
      if letter == "e":
          print("i", end = "")
      if letter == "f":
          print("f", end = "")
      if letter == "g":
          print("g", end = "")
      if letter == "i":
          print("o", end = "")
      if letter == "o":
          print("u", end = "")
      if letter == "u":
          print("a", end = "")
  </code></pre>