How do I write Python code that enters a file’pdf,word, png…’ and outputs its ‘type-size’ properties ?
How do I write Python code that enters a file and outputs its ‘type-size’ properties
>Solution :
For the type check this out:
https://pypi.org/project/filetype/
For the size you can just use os.path.getsize()