You should append all the values to a list, that allows you to easily iterate through the values later as well as not littering your namespace with useless variables and magic.
More Related Contents:
- Why doesn’t this python code run infinite times? [closed]
- What happens when start value < end value with range() cmd in Python?
- One line recursive loop in python
- How to do for loop through all items of a list except the first [duplicate]
- How do you create different variable names while in a loop? [duplicate]
- How do I count occurrence of unique values inside a list
- Is it possible to implement a Python for range loop without an iterator variable?
- Python: How to keep repeating a program until a specific input is obtained? [duplicate]
- How do I loop through a list by twos? [duplicate]
- Changing variable names with Python for loops [duplicate]
- Pythonic way to combine for-loop and if-statement
- Assigning values to variables in a list using a loop
- Are infinite for loops possible in Python? [duplicate]
- Why does a for-loop with pop-method (or del statement) not iterate over all list elements [duplicate]
- Converting for loops to while loops in python
- Python nested looping Idiom
- Understanding for loops in Python
- Using a loop to create and assign multiple variables (Python) [duplicate]
- Creating multiple variables [duplicate]
- Is it possible to make a `for` loop without an iterator variable? (How can I make make code loop a set number of times?)
- How can I make sense of the `else` clause of Python loops?
- for or while loop to do something n times [duplicate]
- Modifying a list while iterating when programming with python [duplicate]
- Skip over a value in the range function in python
- Using a loop in Python to name variables [duplicate]
- Strange result when removing item from a list while iterating over it in Python
- for loops and iterating through lists
- Why do I get “List index out of range” when trying to add consecutive numbers in a list using “for i in list”? [duplicate]
- Why does this python dictionary get created out of order using setdefault()?
- How to change variables fed into a for loop in list form