[Tutor] First Program!

Gerrit Holl gerrit@nl.linux.org
Sun, 6 Feb 2000 21:56:17 +0100


jiggity wrote on 949840439:
> I just learned Python and am wondering what type of program would be the easiest to try to write.  I am not looking for anything to fancy.  Just something to test what I can do.

Write a program that takes a random number and asks the user to input
a number. If the user guesses to low, say so. If the user guesses to
high, say so. Count the number of turns the user needs to guess the
number, and tell him when he guessed the number.

The exercises in "Learning Python" are also an excellent exercise.

regards,
Gerrit.

-- 
-----BEGIN GEEK CODE BLOCK----- http://www.geekcode.com
Version: 3.12
GCS dpu s-:-- a14 C++++>$ UL++ P--- L+++ E--- W++ N o? K? w--- !O
!M !V PS+ PE? Y? PGP-- t- 5? X? R- tv- b+(++) DI D+ G++ !e !r !y
-----END GEEK CODE BLOCK----- moc.edockeeg.www//:ptth