[Chicago] pedantic guessing game demo
kirby urner
kirby.urner at gmail.com
Sun Mar 27 00:55:01 CET 2011
On Sat, Mar 26, 2011 at 4:53 PM, kirby urner <kirby.urner at gmail.com> wrote:
> On Sat, Mar 26, 2011 at 4:05 PM, Malcolm Newsome
> to where it says "Too high" or "Too low" on any guess that's not right.**
>
Oh duh! You already did exactly that earlier in the thread.
My bad for not scanning completely!
Kirby
> Another challenge would be to come up with several variants of this program
> the exercise different features, even try: / except: if you wanna get creative.
>
> Python rocks, party on!
>
> Kirby
>
> ** PSF chairman Holden uses just this approach in his courseware for OST.
>
>
>>>> print "I'm thinking of a number between 1 - 100. Can you guess what
>>>> it is?"
>>>>
>>>>
>>>> random_num = random.randint(1, 100)
>>>>
>>>> guess = int(input("Type a number between 1 - 100: "))
>>>>
>
More information about the Chicago
mailing list