Ask coding questions

← Back to all posts
how to add files to a python with turtle repl
[deleted]

hello! i was thinking about making a flappy bird game with turtle module , so i made a new repl python with turtle.
but i didn't know how to add images to my repl , i don't talk about python or a pygame repl where i can simply upload file

Voters
tama5
Comments
hotnewtop
RedHenDev

I have the same problem - looks like the ability to upload files is not possible if using python (with Turtle)

You can, however, use Trinket.io to do this, identical code. Here's an example: https://trinket.io/python/5541da4d90

lightningrock

@MehdiBenkhadra To upload a file go to your repl then open the files section. Then click on the three dots and click upload file. Then you should be able to upload an image.
If this helped please mark it as an answer.

[deleted]

thanks but i work with a repl (python with turtle) in this repl i don't find the file section.
@SeanXiao

lightningrock

You dont have the button? (see pic) @MehdiBenkhadra

[deleted]

in a repl python with turtle there isn't
@lightningrock

lightningrock

hmmm... maybe if you change it into a normal python? You could copy and paste the code. maybe this worked? @MehdiBenkhadra

[deleted]

hmmmm ok i'm gonnatry it
@lightningrock

lightningrock

ok if it works plz tell me @MehdiBenkhadra

lightningrock

if it works plz mark as answer.
thanks
@MehdiBenkhadra

tama5

The files section is still missing. I understand that it's good for absolute beginners. Still, I'd like to use the files section in "Python Turtle" repl.