So, i got to the last part of this lesson, and went to the review. I understand what it asks, and tried to put my tought into code, but it got weird. Like reallz weird. And somehow it worked, well not 100% working, but it was accepted.
My question is, why it was accepted, and how should i do it better? Because i’m really stuck in the code, and at this moment i’m going to take a walk to clear my head.
This is the exercice/review
# Your code below: single_digits = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] squares =  for digit in single_digits: print(digit) for num in single_digits: num_squared = num ** 2 squares.append(num_squared) print(squares) cubes = [element **3 for element in single_digits] print(cubes)
I guess the 1st print is fine, and in the next one, it should just appear the last part of numbers. This - [0, 1, 8, 27, 64, 125, 216, 343, 512, 729].