I'd like to have a function that receives a list of strings and converts them to variable to be used with some extra constant prefix
For example: element_list=['em1', 'em2', 'em3']
def myFunction(list):
for element in list:
XXX
get_data(pref.element)
Where the pref.element shall be already a variable name. What I'm missing is the XXX.