Modifying each element in a list in a function


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


Line 5 should be:

x[i] = x[i] * 2


Hey thank you so much!


You are welcome! :slightly_smiling: