Modifying each element in a list in a function


#1

Hi all, I've compared my code to some others that are exactly like it, and theirs works while mine doesn't. I'm sure I'm missing something, just not sure what! Any help is appreciated and TIA


#2

Line 5 should be:

x[i] = x[i] * 2

#3

Hey thank you so much!


#4

You are welcome! :slightly_smiling: