is it possible to create a fstring inside a fstring?
what i am trying now is to create a dynamic function using eval.
my code is something like this
func_string = ''
for scenario in ['scene1', 'scene2']:
for aa in ['int', 'ext']:
func_string += f'''
def function_{scenario}_{aa}(part):
print(f"this is {part}")
'''
eval(func_string)
function_scene1_int('part1')
running this script will return: this is part1