Follow

0 is positive in Python3?

>>> "{0:+}%".format(-2)
'-2%'
>>> "{0:+}%".format(+2)
'+2%'
>>> "{0:+}%".format(22)
'+22%'
>>> "{0:+}%".format(0)
'+0%'

· · Web · 0 · 0 · 1
Sign in to participate in the conversation
Octodon

The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!