Guest User

Untitled

a guest
Apr 21st, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #!/usr/bin/python
  2. """
  3. Kenneth Bump Jr.
  4. WIS 290
  5. Fall block 2 2009"""
  6.  
  7. """ Horizontal Histogram question 1 wis 290 mid-term """
  8. # pring number 0 to 9 in vertical format
  9. # count how many times the numbers are randomly seleced until the count of 100
  10. # print how many time the numbers are selected next to its number
  11.  
  12. import random # used to import the random module
  13. number = [0]
  14. for number in range (10): # selects number in the values of 0 to 9
  15. print number
  16. while number <=100: # until the count of 100 is reached, keep processing
  17. print random.randrange(10)
  18. number += 1 #adds one count to the counter
  19.  
  20.  
  21. # still cant find some way to stop the loop process. aaahhhh
Add Comment
Please, Sign In to add comment