The meaning of square_list = [] here


#1

Hi, guys, I don't understand the meaning of square_list = [] here. Does it mean the number in the start_list will be shown in square_list directly? Many thanks!


More with 'for' unit 5, lesson 1, #9
#2

Yes, that is correct. Given the start_list, the cached results in the square_list will directly correspond, by index.

print (start_list[0])     # 5

print (square_list[0])    # 25

#3

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.