title: How can I summarize all of the values that the user has inputted as a list at the end of the code when the user inputs 0?
body: <p>I am new to python and coding in general so sorry if the code is messy. I want to summarize all of the values that the user has inputted as a list at the end of the code when the user inputs 0. If you can help it would be greatly appreciated.</p>
  <pre><code>while True:
  
  
   print(&quot;Press 1 to apply for the ride\nPress 0 to quit&quot;)
  
   userchoice = input(&quot;Choice:&quot;)
  
   #for option 1
  
   if userchoice == &quot;1&quot;:
    print(&quot;What is your age?&quot;)
    
    userage = int(input(&quot;Age:&quot;))
  
    if userage &lt; 7:
      print(&quot;You are too young&quot;)
  
    elif userage &lt; 12:
      print(&quot;You can ride the ride&quot;)
  
    elif userage &gt; 12:
      print(&quot;You are too old&quot;)
   
   #for option 0
   if userchoice == &quot;0&quot;:
     print(&quot;Application Exited&quot;)
     break
  </code></pre>