Paul Rubin <[email protected]> writes: Lawrence D’Oliveiro <[email protected]> writes: > >>> "%#0.3x" % 2 > '0x002'
f'0x{2:03x}
Won't work for negative numbers.
--
Alan Bawden
--
https://mail.python.org/mailman3//lists/python-list.python.org
