[Tutor] Help with a tutorial

Alan Gauld alan.gauld@blueyonder.co.uk
Fri Jul 25 03:21:01 2003


> """
> Rewrite the high_low.py program from section 5.2 to use the last two
> digits of time at that moment to be the 'random' number.
> """
> """
> Rewrite the high_low.py program from section 5.2:
>
>     1.  To use the last two digits of time at that moment.
>
>     2.  To be the 'random' number.
> """
>
> Can anyone confirm that this is what Josh meant?

I think its simpler than that. Josh is simply saying use the
time() function to get a number. Take the last two digits
and use them instead of 78 as the target. As Isaac said,
the trick is to 'think strings'

Alan G.