+ 2

Time function in python

What is the syntax for time function I used: t = time() and it said time was not defined

29th Aug 2018, 12:39 AM
Robert Ruff
Robert Ruff - avatar
3 odpowiedzi
+ 6
did you imported the time libraries? import time
29th Aug 2018, 1:48 AM
Raj Chhatrala
Raj Chhatrala - avatar
+ 1
Thank you. Import time was key. I am learning Python to assist my college age sons learn programming.
29th Aug 2018, 9:19 PM
Robert Ruff
Robert Ruff - avatar
0
import time print(time.time())
29th Aug 2018, 11:41 AM
Christopher
Christopher - avatar