Browse Source

Add docstring

main
Valentin BOUVAREL 3 years ago
parent
commit
01be0e01cd
  1. 2
      gestform.py

2
gestform.py

@ -10,9 +10,11 @@ MAX = 1000
def generate_numbers_list(mini: int, maxi: int) -> List[int]:
"""Generate a list of int between mini and maxi"""
return list(range(mini, maxi+1))
def randomise_with_iterator(list_from: List[int]) -> int:
"""Copy and randomize a list to an iterator"""
randomized = list_from.copy()
shuffle(randomized)
while randomized:

Loading…
Cancel
Save