get file size in python4 code example Example: python file size >>> import os >>> b = os.path.getsize("/path/isa_005.mp3") >>> b 2071611