Is there a way to get the same result using .format()?
a = 10
print(f'something {a+2}')
something 12
When I try to do it like this I get KeyError:
print('something {a+2}'.format(a=10))
KeyError
Traceback (most recent call last)
<ipython-input-94-69f36f3c6aec> in <module>
----> 1 'something {a+2}'.format(a=10)
KeyError: 'a+2'