python_exercises/thinkcspy/Chapter-5-Exercises/problem16.py

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)