For my python program I am asked to calculate resistor values that the user inputs. In the program I am asked to demonstrate Data handling, Loops, Lists and Validation.

I have 7 resistor values to be inputted into the program. For each resistor input I have created a loop like so:

```
#Loop for Resistor 2:
while True :
    try:
        R2 = float(input( 'Resistor Value R2: ' ))
    except ValueError:
        print( 'Sorry, Invalid Input! Try Inputing A Number' )
        continue
    if R2 < 0 :
        print( 'Sorry, Invalid Input! Try A Positive Number ' )
        continue
    else :
        break

```

As I have 7 resistors I have 7 of these loops typed out for the program. This works completely fine. However I would like to have these all in a list. So for example, instead of writing this loop out 7 different times for 7 resistors, is to create a list and have this written once and repeat for all 7 inputs.

would anybody know how I could do this? I am quite new to python and quite confused.