I\'m trying to populate a list with a for loop. This is what I have so far:
newlist = [] for x in range(10): for y in range(10): newlist.append(y
Or just nested list comprehension
[[x for x in range(10)] for _ in range(10)]