Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- """
- Kenneth Bump Jr.
- WIS 290
- Fall block 2 2009"""
- """ Horizontal Histogram question 1 wis 290 mid-term """
- # pring number 0 to 9 in vertical format
- # count how many times the numbers are randomly seleced until the count of 100
- # print how many time the numbers are selected next to its number
- import random # used to import the random module
- number = [0]
- for number in range (10): # selects number in the values of 0 to 9
- print number
- while number <=100: # until the count of 100 is reached, keep processing
- print random.randrange(10)
- number += 1 #adds one count to the counter
- # still cant find some way to stop the loop process. aaahhhh
Add Comment
Please, Sign In to add comment