I want to check string is valid extension in Python.
For example, I have string png or .png and I want to check if it is exist extension. So I think I need list of extensions like ["png", "jpg", "pdf", "txt", ....] but I can't find it anywhere.
Does anyone have a way to do this or have a list of extensions?
I'm using Python 3.8, and Window 10. Thanks.
 
     
    