I was wondering if I can pass an argument to a function by passing it a different argument that constructs the first argument's name from strings. Basically cut(arg)
to be the same as cut(clip_a)
?
str = ['a', 'b']
clip_a = ['vacation', 'work']
clib_b = ['gym', 'court']
arg = f'clip_{str[0]}'
def cut(clip):
clip[0] = 'sauna'
cut(arg)