Hello,
New to Python / jython.
Have a problem appending a digit on to the end of a string as per below. Does anyone know a way around this ?
contents of config.py file....
total = 2
var1 = one
var2 = two
contents script.py file.....
import config
count = 1
while count <= import.total:
# What I want to do now is firstly print the
# resultant of config.var1 (one),
# and then config.var2 (two) on the 2nd loop.
# ie, using something along the lines of
# print "config.var" + count.
count = count + 1
Thanks
Winston
New to Python / jython.
Have a problem appending a digit on to the end of a string as per below. Does anyone know a way around this ?
contents of config.py file....
total = 2
var1 = one
var2 = two
contents script.py file.....
import config
count = 1
while count <= import.total:
# What I want to do now is firstly print the
# resultant of config.var1 (one),
# and then config.var2 (two) on the 2nd loop.
# ie, using something along the lines of
# print "config.var" + count.
count = count + 1
Thanks
Winston