title: What do I need to change in my functions to be able to store the result in a variable?
body: <p>I am trying to save the result of a function into a variable and print that variable on the screen, but when I print I see "none". <br>
  How to repair this?</p>
  
  <pre><code>import time;
  
  
  def hours():
      localtime =  time.localtime(time.time())
      print (localtime.tm_hour)
  
  def minutes():
      localtime =  time.localtime(time.time()) 
      print (localtime.tm_min)
  
  def seconds():
     localtime =  time.localtime(time.time())     
     print (localtime.tm_sec)
  
  
  hours()
  minutes()
  seconds()
  
  var = hours()
  print(var)
  </code></pre>