Image processing - Printable Version +- Python Forum (https://python-forum.io) +-- Forum: Python Coding (https://python-forum.io/forum-7.html) +--- Forum: Homework (https://python-forum.io/forum-9.html) +--- Thread: Image processing (/thread-37050.html) |
Image processing - MNO - Apr-27-2022 Have to find largest file in a partition of an diskimage tried to make a definition for it but doesn't seem to work def LF_file(): largest_file = {'file': '', 'size': 0} if size => largest_file['size']: largest_file['file'] = file_obj largest_file['size'] = size print("The largest file is: %s" % largest_file['file'].info.name.name) return |