More with for


hi guys can somebody explain why:

for number in start_list:
square_list.append(number ** 2)

is NOT the same as:

for number in start_list:
square_list.append(2 ** number)

much appreciated!


Have you considered what ** is?
(Can you argue for why you would be able to switch places on the operands? If your question is based on some assumptions, then what are those assumptions?)


Oh wow...cheers mate!


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