I’m facing problems with task No. 4 and I find it still too early to check for the solution. This is my code so far:
single_digits = list(range(10))
for each in single_digits:
squares.append(each ** 2)
It wants me to append the squared value of each element of
single_digits to the list
squares, but it seems that I got only the last element appended. Why is that happening? I think it might be connected to the codeline - print(each) - having printed all the numbers but not all in one row but 1 by 1 in 10 rows. I tried to change its indentation but didn’t help.