error while trying to add image to python [duplicate]

  pygame, python, python-unicode, syntax-error

when I try to run the code:

"bg_surface = pygame.image.load("C:UsersSuperDocumentsflappy birdassetsflappy-bird-assets-masterspritesbackground-day.png")"

I get this error:

SyntaxError: (unicode error) ‘unicodeescape’ codec can’t decode bytes in position 2-3: truncated UXXXXXXXX escape

how do I fix it?

Source: Python Questions

LEAVE A COMMENT