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 t
png
.png