[Tutor] 6 random numbers

ADRIAN KELLY kellyadrian at hotmail.com
Sun Oct 16 21:43:06 CEST 2011

hello all,
anyone know how i would go about printing 6 random numbers, i know i could copy and paste 6 times (which would work) but i was thinking about a while loop, ie. while lottery_numbers.count is <7. 
Is it possible to code this? is it possible to count random variables? i am trying to keep the program as simple as possible, cheers

any help would be welcome, 

import random
print lottery_numbers
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20111016/4c9e4d5c/attachment-0001.html>

More information about the Tutor mailing list