TP4 liste_alea()
This commit is contained in:
parent
8248796a64
commit
1b00b308cc
|
@ -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)
|
||||
|
|
Reference in a new issue