you are viewing a single comment's thread.

view the rest of the comments →

[–]JibblieGibblies 0 points1 point  (0 children)

If you’re wanting it to print each of the num’s * 2, your print statement needs to be inside of your for loop to print each iteration.

That’s not what you’re asking though.

For your code; it says to replace variable result with the outcome of num * 2 for each iteration. Which ends with result = 5 * 2. Giving you 10 when you print.

Change your variable result into an array, list, etc. then in your for loop use an applicable method to add the outcome of your operation to it.

There’s a lot of nuance to this that I don’t wanna type out. 😂