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

9 lines
150 B
Python
Raw Permalink Normal View History

2023-08-21 20:03:55 -06:00
# Runestone.Academy thinkcspy course
# Chapter 5
# Problem 16
import random
for i in range(10):
prob = random.random()
print(i+1, '-', prob)