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.

Files for ftuple, version 1.0.0
Filename, size File type Python version Upload date Hashes
Filename, size ftuple-1.0.0-py2.py3-none-any.whl (26.1 kB) File type Wheel Python version py2.py3 Upload date Hashes View
Filename, size ftuple-1.0.0.tar.gz (1.7 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page