Aug-30-2020, 06:05 AM
Can someone please explain the syntax and the logic of the below code? Especially the first line.
How many stars (*) will the following snippet send to the console?
How many stars (*) will the following snippet send to the console?
lst = [[c for c in range(x)] for x in range(3)] for x in lst: for y in x: if y < 2: print('*', end='')