Skip to main content

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

Project description

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']

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

ftuple-1.0.0.tar.gz (1.7 kB view hashes)

Uploaded Source

Built Distribution

ftuple-1.0.0-py2.py3-none-any.whl (26.1 kB view hashes)

Uploaded Python 2 Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page