Bonjour à tous,

Je ne suis absolument pas familier avec le langage Python et je dois analyser un programme écrit avec.
Seul ce bout de code m'est complétement opaque.
Pouvez-vous m'aider ?
Merci par avance.

Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
def cross(args):
	""" There we are! the magic happen here... make the cross product"""
	ans = [[]]
	for arg in args:
		ans = [x + [y] for x in ans for y in arg]
	return ans