Informatique/maths/Applications/exo10.py
2020-01-09 08:10:47 +01:00

8 lines
179 B
Python
Executable File

#!/usr/bin/env python3
def verifier(L, p, q):
return len(L)==p and min(L)>=0 and max(L) <= q - 1
def composer(L1, L2):
return [L2[i] for i in L1]
def permutation(L):