Ask coding questions

← Back to all posts
Downloaded images
IshaNair (3)

When I try to download an image from my Files onto my server, the image does not get imported to my server. I think my line of code to bring in images is incorrect. Any suggestions on how to do it? If so, please include the line of code to do this. Here is the line of code I am using
chickenimage = pygame.image.load('/home/chronos/MyFiles/Downloads/HayHaythechicken.png')

FYI - This is a pygame.

nt998302 (173)

On replit, files are treated differently than they are on desktop. all you need is:

chickenimage = pygame.image.load('HayHaythechicken.png')
IshaNair (3)

@nt998302 THANK YOU, THANK YOU, THANK YOU, THANK YOU!!!! I am so new to this.

nt998302 (173)

@IshaNair That's good! Keep learning and ask me if you have questions :)