import sys import humanfriendly print(sys.executable) print(humanfriendly.format_size(2048, binary=True))