title: python:How to modify globals inside functions with schelude?
body: <pre><code>import time
  import schedule
  
  seconds = 0.01
  
  def job():
      print(&quot;I'm working...&quot;)
      global seconds
      seconds += 0.01
  
  schedule.every(seconds).minutes.do(job)
  
  while True:
      schedule.run_pending()
      time.sleep(1)
  </code></pre>
  <p>It won't actually increase seconds every time it gets executed,sorry for the bad explanation was in a hurry</p>