[Tutor] while/if/elif/else loops
Kent Johnson
kent37 at tds.net
Wed Nov 2 19:09:34 CET 2005
rio wrote:
> i too am a newbie to programming (except BASIC over 20 years ago!).
> randrange() didnt seem to be in the random module (pyth2.4.2)
Sure it is, check your spelling and make sure you call it random.randrange():
Python 2.4.2 (#67, Sep 28 2005, 12:41:11) [MSC v.1310 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> import random
>>> random.randrange(2)
1
> can i gush? I LOOOOOOVE python! what a great language! IDLE is awesome!
> this list is awesome! i learn so much every day...
Gush away :-)
Kent
--
http://www.kentsjohnson.com
More information about the Tutor
mailing list