import random as rnd
rnd.seed(42)
notas_matematica = [rnd.randrange(0, 11) for notas in range(8)]
notas_matematica
Output:
[10, 1, 0, 4, 3, 3, 2, 1]
import random as rnd
rnd.seed(42)
notas_matematica = [rnd.randrange(0, 11) for notas in range(8)]
notas_matematica
Output:
[10, 1, 0, 4, 3, 3, 2, 1]
Ótimo.