[Tutor] I am puzzled - help needed

John Carmona jeannot18 at hotmail.com
Wed Mar 30 22:32:05 CEST 2005

I am not sure that it is possible to ask that question please feel free to 
turn me down if it is going against the forum rules.

I have going through Josh Cogliati tutorial, I am stuck on one of the 
exercise. I need to rewrite the high_low.py program (see below) to use the 
last two digits of time at that moment to be the "random number". This is 
using the import time module.

I just can't work out how to do that, I have been looking at it for the past 
2,5 hours but can't break it. Has anyone done it in order for me to study 

Many thanks in advance for any help

This is the original programme:

number = 78
guess = 0

while guess != number
    guess = input ("Guess a number: ")

    if guess > number:
        print "Too high"

    elif guess < number:
        print "Too low"

print "just right"

More information about the Tutor mailing list