[Tutor] help with random.randint

David ldl08 at gmx.net
Wed Feb 3 08:19:15 CET 2010

Hello Bob,

thanks for your comments!

On 03/02/10 14:51, bob gailer wrote:

> or if you seek terseness:
> terms = [random.randint(1, 99) for i in 'ab']

Do I understand correctly that 'ab' here merely serves to produce a 
'dummy sequence' over which I can run the for loop?


More information about the Tutor mailing list