Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Simple countdown from 2 minutes

Status
Not open for further replies.

miniwolle

Instructor
Mar 29, 2006
1
DK
Hi.

Can anyone tell me the python code for a simple countdown from eg. 2.00 minutes.

It should be printet out to the screen.
When it is finished it should write "Time is up"

Hope you can help.

Henrik
 
import the "time" module and use time.sleep(120). Use the print command to print the message.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top