Python: Int and Format Defination

PHOTO EMBED

Fri Mar 05 2021 14:29:03 GMT+0000 (Coordinated Universal Time)

Saved by @muneebable #python

format(int(n, x), 'x')
content_copyCOPY

https://en.wikipedia.org/wiki/Printf_format_string#Format_placeholder_specification Int -> to number base 10 from any base 'x'. Format take format specification 'x' convert it to hex.