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 it.

Many thanks in advance for any help
JC

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"


_______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor

Reply via email to