you mean something like this?
value = 'month' browser.find_element_by_id('field_10_{}'.format(value))Otherwise could you elaborate a little more? I not really sure on what your asking.
Recommended Tutorials: