+ 2
You're printing the return value of lst.append(num). It doesn't return anything so you print None 4 times. Don't print in the for loop, just append. Then after the loop, print the list
22nd Jan 2022, 2:49 PM
Slick
Slick - avatar