I have a number of variables iE: x1
to x10
Now I'd like to get the content of each of them.
Is it possible to put the variable together like xi
?
Or should I just use Lists?
Kind of lost on the Syntax here I believe! Something like that is what im thinking of:
while i <= 10:
print(test+i)
variables = [x0, x1, x2, x3, x4, x5, x6, x7, x8, x9]
for x in variables:
print x
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With