I want to create a list of lists using list comprehension. ex [range(3),range(3),range(3)] i.e all possible coordinates of a 3d system from 0 to 3 How to do this using only list comprehension and nothing else
I tried doing
coordinates=[x for x in range(3)[y for y in range(3)[z for z in range(3)]]]