Corrigé liste_decroissante
N'incluait pas le 0.
This commit is contained in:
parent
7566eba9e9
commit
dd9680443f
|
@ -162,7 +162,7 @@ def liste_decroissante(n):
|
|||
"""
|
||||
assert type(n) == int and n >= 0
|
||||
|
||||
return list(range(n - 1, 0, -1))
|
||||
return list(range(n - 1, -1, -1))
|
||||
|
||||
question(3)
|
||||
|
||||
|
|
Reference in a new issue