Exercise: Check a file extension

The variable filename holds a file name. Decide whether it is an image by checking that it ends with .jpg or .png. Use str.endswith() with a tuple of suffixes, and lowercase the name first so the check ignores case. Store the boolean result in is_image.
Python
Setting up Python environment...
Output