?
What will be the output if we try to extract only the year from the following Python code?
What will be the output if we try to extract only the year from the following Python code?
(time.struct_time(tm_year=2017, tm_mon=6, tm_mday=25, tm_hour=18, tm_min=26, tm_sec=6, tm_wday=6, tm_yday=176, tm_isdst=0))
import time
t=time.localtime()
print(t)
import time
t=time.localtime()
print(t)
Join the Discussion
Login to post a comment or share your explanation.
Login