Guessing Game Assignment

From WLCS
Revision as of 14:07, 24 October 2008 by Admin (talk | contribs)

Guessing Game Rules

  1. Mr. Bui will think of a number from 0 to 100
  2. You will guess a number
  3. Mr. Bui will tell you to guess higher or lower
  4. You will guess again, and so on and so forth.


Guessing Game Algorithm

  1. Generate a random number from 0 to 100
import random (at the very top)
randomNum = random.randint(0, 100)