im trying to render a form in web.py using a user login name(carried by a variable) and a predefined form name based on the page that is been viewed (ie temperatures from around house for me and separate page with temps around house my missus would be interested in) but im stuck on stitching those 2 variables together to yield another variables name.
i think in its simplest form what im trying to do is get something like this to print the contents of the variable im calling..
Code: Select all
attempting = "it worked"
attempter = "this also worked"
variable = 'attempt'
to_print = variable+'ing'
print to_print
to_print = variable+'er'
print to_print
any help would be greatly appreciated