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)
timeStart = time.time()
choice = input("Enter choice:\n")
timeTaken = timeEnd - timeStart
print("That took: " + str(timeTaken) + "seconds")
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.