title: Giving 'SyntaxError: invalid syntax' in format in python 3
body: <p>I am trying to make a function where you put in options and the user picks one. </p>
  
  <p>Python keeps giving me an error message on line 6 and 9 where the format is.</p>
  
  <p>I have python 3.7.4</p>
  
  <pre><code>def choice(choices, message):
      print(message)
      print("Do you want to :")
      answer = ""
      for i, x in enumerate(choices):
          print(f"{i}: {x}")
      while answer &gt; len(choices):
          while type(answer) != int: 
              answer = input(f"Enter a number between 1 - {len(choices)}:  ")
              try:
                  answer = int(answer)
              except:
                  pass
  
  choice(["run", "or hide"], "You are being hunted")
  </code></pre>