title: Trying to create a program that tracks which inputs I've added but stuck
body: <p>Basically I'm trying to get my program to loop back to main_screen after entering a screen_number, repeating indefinitely until I press T to terminate it. Meanwhile P is supposed to track how many numbers I've imputed throughout the session. This is what I have so far and I only know how to loop screen_number. Just can't figure out how to loop back to main_screen or how to go about making the &quot;P&quot; function.</p>
  <pre><code>main_screen = str(input(&quot;Pick W to add a new number, P to show how many numbers, high or low, have been added, or T to terminate: &quot;))
  if(main_screen == &quot;W&quot;):
      screen_number = int(input(&quot;Input your grade: &quot;))    
      if(screen_number &gt;= 10):
          print(&quot;It's high.&quot;)
      elif(user_grade &lt; 10):
          print(&quot;It's low.&quot;)
  if(user_menu == &quot;T&quot;):
      print(&quot;Terminating system.&quot;)
  else:
      print(&quot;Invalid.&quot;)```
  </code></pre>