Suppose I want to add several numbers together like: 1. Find even numbers between 1-100. 2. Find odd numbers between 2-200. 3. Add them.
So for this, I can check for even numbers and odd numbers respectively, but to add them, they must be stored somewhere. Now how can I do this?
i.e. store the output of the first step, store the output of second step and then add them together.
list. See your Python tutorial's section about lists.