9 lines
No EOL
150 B
Python
9 lines
No EOL
150 B
Python
# Runestone.Academy thinkcspy course
|
|
# Chapter 5
|
|
# Problem 16
|
|
|
|
import random
|
|
|
|
for i in range(10):
|
|
prob = random.random()
|
|
print(i+1, '-', prob) |