title: How do You change a variable to a string in python?
body: <p>So I am trying to change a randomized variable to a string with a function, any ideas why this isn't working?</p>
  
  <pre><code>def letter(x):
      if x == 1:
              x = "A"
      elif x == 2:
              x = "C"
      elif x == 3:
              x = "G"
      elif x == 4:
              x = "T"
      else:
              print "Error" 
  randint18= random.randrange(1,5)
  letter(randint18)
  print randint18 `
  </code></pre>