Numbers with same digit set in base 10 and base 16: Difference between revisions
Numbers with same digit set in base 10 and base 16 (view source)
Revision as of 19:22, 8 July 2022
, 2 years ago→Python :: Functional
(→Python :: Functional: Added a version expressed in terms of a list comprehension.) |
|||
Line 1,017:
<lang python>for nh in ([
(n, h) for n in range(0, 1 + 100000)
if (
(h := hex(n)[2:])
|