Adding reply to list - On Sat, Jan 15, 2011 at 2:55 AM, walter weston <hacker0...@hotmail.com> wrote: > I only want to generate a random number once >
Then you don't need a for loop. Think of a for loop as something you need when you want to run a piece of code several times, for example for x in range(1,6): print('This is message number %d' % (x)) HTH _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor