The following works in Python 3.8+
a = 1.5
print(f'{a=}')
In earlier Python versions it is equivalent to
a = 1.5
print(f'a={a}')
I developed my library for Python 3.8+ but a few servers (CentOS-7, OpenSUSE-15.1/15.2) have Python 3.6 by default, where this library is to be deployed. I can install 3.8 on these servers as last resort or rewrite f-string lines.
I was wondering if there is any from __future__ import xxx
trick or a third party library that backports this to 3.6.