Codecademy is firing off " every_three_nums(91)
should have returned [91, 94, 97, 100]
, and it returned [91, 94, 97, 100, 91, 94, 97, 100]"
my code is only returning [91, 94, 97, 100] when ran.
Can someone help to see if this is a glitch on codecademy’s side or if I’m doing something incorrectly without realizing it? My code and attached picture is below.
new_list = []
def every_three_nums(start):
for i in range(start, 101, 3):
new_list.append(i)
return new_list
#Uncomment the line below when your function is done
print(every_three_nums(91))