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
Alternatively, you only need one loop and append range(10).
range(10)
newlist = [] for x in range(10): newlist.append(list(range(10)))
Or
newlist = [list(range(10)) for _ in range(10)]