James wrote:
> Hi. :)
>
> I'm trying to write a loop to simplify my life (and code :)). The
> loop is going to iterate over a list of values that I have to change
> in a file. I think my problem is better described with some code. :)
Use a dictionary instead of a tuple ...
# variables
editVal
Hi. :)
I'm trying to write a loop to simplify my life (and code :)). The
loop is going to iterate over a list of values that I have to change
in a file. I think my problem is better described with some code. :)
# variables
interface = "eth0"
address = "192.168.1.5"
mask = "255.255.255.0"