How do i add a timer to this?
Please try to explain in very simple language ....as am a newbie to both coding and python
you need to import time, then set the time that it started at, and then minus that from the time that it ended (see code below)
import time
timeStart = time.time()
choice = input("Enter choice:\n")
timeEnd= time.time()
timeTaken = timeEnd - timeStart
print("That took: " + str(timeTaken) + "seconds")
what isn't working
I made it work.....there werent any replies for long.....srryy...can you tell me how do i add a timer to this? @Leroy01010
Python is an interpreted, object-oriented, high-level programming language with dynamic semantics. ... Python's simple, easy to learn syntax emphasizes readability and therefore reduces the cost of program maintenance. Python supports modules and packages, which encourages program modularity and code reuse.
And it is working
Can you tell me how can i add a timer for every [email protected]
That's a nice program
What do you want me to explain? What this program does?
Can you tell me how can i add a timer for each [email protected]
Maybe you can use threading
. @TejasvMaheshwar
i have said the answer