I am learning pygame and getting errors.
Whenever I want to put a background image in my window I get an error No file found. While the image name is appropriate.
I'm using Windows PC
Hope this community helps me and motivates me to learn more.
here's my code
import pygame
pygame.init()
window_width = 400
window_height = 400
size = (window_height, window_width)
screen = pygame.display.set_mode(size)
pygame.display.set_caption("Hello_World")
background_image = pygame.image.load("motivation.png").convert()
while True:
screen.blit(background_image, [0, 0])