Re: advice on this little script
John Salerno wrote:[color=blue][color=green]
>> for x in range(minutes,0 ,-1):
>> sleep(60.0)
>> print minutes, 'minutes remaining'
>>[/color]
>
> I might be doing something wrong, but this just keeps printing out '10
> minutes remaining' each time.[/color]
should be:
for x in range(minutes,0 ,-1):
sleep(60.0)
print x, 'minutes remaining'
Ben
John Salerno wrote:[color=blue][color=green]
>> for x in range(minutes,0 ,-1):
>> sleep(60.0)
>> print minutes, 'minutes remaining'
>>[/color]
>
> I might be doing something wrong, but this just keeps printing out '10
> minutes remaining' each time.[/color]
should be:
for x in range(minutes,0 ,-1):
sleep(60.0)
print x, 'minutes remaining'
Ben
Comment