Is there a way to achieve applying f-strings interpolation dynamically on a string?
For example given the string a = '{len([1])}'
a.interpolate() to give '1'
Is there a way to achieve applying f-strings interpolation dynamically on a string?
For example given the string a = '{len([1])}'
a.interpolate() to give '1'
Try this:
 a = f'{len([1])}'
 print(a)
 #1
