This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program in the file Observe.py that prints 10 random integers (each random integer should have a value between 0 and 100, inclusive). | |
program uses a constant named NUM_RANDOM, which determines the number of random numbers to print (with a value of 10). | |
It also uses constants named MIN_RANDOM and MAX_RANDOM to determine the minimal and maximal values of the random numbers generated (with respective values 0 and 100). | |
To generate random numbers, you should use the function random.randint() from Python’s random library. | |
Here's a sample run of the program: |
NewerOlder