title: how to print 3 numbers greater than a specific number of a list in python?
body: <p>I have written the following code which will ask for a number from the user and check the number in the list if they are greater than the user input, then it will print the next 3 numbers. I just don't understand how to implement the condition so that it prints the next 3 numbers, not all!</p>
  <pre class="lang-py prettyprint-override"><code>def main():
      number_list = [630,1015,1415,1620,1720,2000]
      a=int(input(&quot;Enter the time (as an integer):&quot;))
      for i in number_list:
          if(i&gt;=a):
              print(i)
  
  if __name__ == &quot;__main__&quot;:
      main()
  </code></pre>