ftuple

F-strings are fabulous, why can't we make the same with Tuple and lists ?


License
MIT
Install
pip install ftuple==1.0.0

Documentation

F-Tuple

F-strings are fabulous, why can't we make the same with Tuple and lists ?

Now you can:

In [1]: from ftuple import f

In [2]: h = "Hello"

In [3]: w = "World"

In [4]: f"{h} {w}"
Out[4]: 'Hello World'

In [5]: f({h}, {w})
Out[5]: ('Hello', 'World')

In [6]: f[{h}, {w}]
Out[6]: ['Hello', 'World']