I hate to say this, but I forgot this one-liner syntax in my online coding test. So, I think I need to put this here.
format = lambda n: '{:,}'.format(n)
print(format(-1234567890)) # -1,234,567,890
For further actions, you may consider blocking this person and/or reporting abuse
Super Kai (Kazuya Ito) -
Khai J. Thani -
Adithya A -
Trix Cyrus -
Top comments (0)