How to add a image in Python?

I am working on a game and I want to add a image that is supossed to be a background in Python, but I dont know if this must be a PNG image or more of a JPEG image?
Does anyone have an idea about this?

Hey @amel8star!

Can you please provide a link to the repl? This way it is easier for staff and members of the community to help you!

Also see this guide on how to share your code: