title: Getting the middle character in a odd length string
body: <pre><code>def get_middle_character(odd_string):
      variable = len(odd_string)
      x = str((variable/2))
      middle_character = odd_string.find(x)
      middle_character2 = odd_string[middle_character]
      return middle_character2
  
  
  
  def main():
      print('Enter a odd length string: ')
      odd_string = input()
      print('The middle character is', get_middle_character(odd_string))
  
  main()   
  </code></pre>
  
  <p>I need to figure out how to print the middle character in a given odd length string. But when I run this code, I only get the last character. What is the problem? </p>