I run the following Python code:
1 2 3 4 5 |
|
What is the probability that a number greater than 45 will be printed?
This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try
refreshing the page, (b) enabling javascript if it is disabled on your browser and,
finally, (c)
loading the
non-javascript version of this page
. We're sorry about the hassle.
Although the random module has been imported, the random method of the module has not. Thus, the code will result in an error.