_I didn't understand the functional approach with the loop'for'. Could you explain me that?

- Code: Select all
`>>> F= [[x * y for x in range (3)] for y in range (3)]`

>>> F

[[0, 0, 0], [0, 1, 2], [0, 2, 4]]

I tried to understand with print but it does not tell me much :

- Code: Select all
`>>> print([i*j for j in range(3)])`

[0, 2, 4]

>>> print([i*j for i in range(3)])

[0, 2, 4]

_ What's the difference with the code I= [[x + y for x in range (3)] for y in range (3)] ? result [[0, 1, 2], [1, 2, 3], [2, 3, 4]]