please solve this error

import pygame
import time

pygame.init()
display_surface=pygame.display.set_mode((600,600))
image=pygame.image.load(“backgroundone.jpg”)

font=pygame.font.SysFont(“Times New Roman”,72)
text=font.render(“Happy”,True,(0,0,0))
text2=font.render(“Birthday”,True,(0,0,0))
text3=font.render(“MD GAUS”,True,(0,0,0))
display_surface.fill((255,255,255))
display_surface.blit(image,(0,0))
display_surface.blit(text,(210,180))
display_surface.blit(text2,(180,264))
display_surface.blit(text3,(160,260))
pygame.display.update()
time.sleep(2)

image2=pygame.image.load(“backgroundtwo.jpg”)
font3=pygame.font.SysFont(“Arial”,78)
text4=font3.render(“Wish You Happy Birthday”,True,(0,0,0))
display_surface.fill((255,255,255))
display_surface.blit(image2,(0,0))
display_surface.blit(text4,(60,80))
pygame.display.update()
time.sleep(3)

image3=pygame.image.load(“backgroundthree.jpg”)
display_surface.fill((255,255,255))
display_surface.blit(image3,(0,0))
pygame.display.update()
time.sleep(4)

Hi Kais,

Thank you for showing the code you are using, but you haven’t told us
what error you are getting.

Are you getting a traceback? Please copy and paste the full error
traceback, starting with the line “Traceback…” to the end of the error
message.

Please don’t post an image or screen shot of the error unless all else
fails.

If you are not getting a traceback, you will need to tell us what sort
of error you are getting. What did you expect to happen, and what
happened instead?

1 Like

hi
There Is No error in the program
but still, it’s showing one photo only
I have included 3 photos in the program
but only one is showing

Traceback (most recent call last):
File “C:\Users\Havery.DESKTOP-90L946F\Downloads\happyB (1).py”, line 3, in
import pygame
ModuleNotFoundError: No module named ‘pygame’

You need to install Pygame.

Have you installed it? See the instructions here:

https://www.pygame.org/

Yes, I installed it
but again & again, he’s showing import pygame