title: How to use the 'return' statement properly in Python
body: <p>there are some significant errors in my code and I don't understand what is causing them. I have tried changing the format of my return statement, but I keep receiving the same error.</p>
  <p>This is my current code:</p>
  <pre><code>print(&quot;Kiran's Quiz: A quiz made by Kiran!\n&quot;)
  
  def answers():
      points = 0
      x = input(&quot;Question 1: How far away is  the Earth from the Sun? Give your answer in 'n million miles'.&quot;)
      y = input(&quot;Question 2: What colour is white? Give your answer in 'x colour(s)'.&quot;)
      z = input(&quot;Question 3: What temperature is boiling water? Give your answer in 'n degrees centigrade'.&quot;)
  
      while (x != &quot;93 million miles&quot;) or (y != &quot;every colour&quot;) or (z != &quot;100 degrees centigrade&quot;):
          print (&quot;You got it wrong. -1 point for you!.&quot;)
          points -= 1
          print(&quot;You have&quot; + str(points) + (&quot;points.&quot;)
      
      points += 1
      print(&quot;Hooray, you got it correct! +1 to you!&quot;)
  
      return x, y, z
  
  answers()
  </code></pre>
  <p>and I am getting this error:</p>
  <pre><code>Traceback (most recent call last):
    File &quot;python&quot;, line 17
      return x, y, z
           ^
  SyntaxError: invalid syntax
  </code></pre>
  <p><a href="https://i.stack.imgur.com/kfR0x.png" rel="nofollow noreferrer">Code and error</a></p>