TP4 liste_alea()

This commit is contained in:
Geoffrey Frogeye 2015-03-10 10:52:14 +01:00
parent 8248796a64
commit 1b00b308cc

View file

@ -36,6 +36,16 @@ partie("Travail à réaliser")
section("Préliminaires")
def liste_alea(n, a, b):
"""
int, int, int list
"""
res = []
for i in range(n):
res.append(randint(a, b))
return res
question(0)
question(0)