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".
How to repair this?
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)