1.

The output of the code shown below is 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) Code: To extract only the year from this, we can use the function: import time t=time.localtime() print(t)

A. t[1]
B. tm_year
C. t[0]
D. t_year
Answer» D. t_year


Discussion

No Comment Found