Skip to content
Sign upLog in
← Back to Community

how to add files to a python with turtle repl

Profile icon
[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
Profile icon
kirstenkingma
Profile icon
tama5
Comments
hotnewtop
Profile icon
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

Profile icon
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.

Profile icon
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.

Profile icon
[deleted]

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


@SeanXiao

Profile icon
lightningrock

You dont have the button? (see pic)

@MehdiBenkhadra

Annotation 2020-06-04 125728

Profile icon
[deleted]

in a repl python with turtle there isn't


@lightningrock

Profile icon
lightningrock

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

@MehdiBenkhadra

Profile icon
[deleted]

hmmmm ok i'm gonnatry it


@lightningrock

Profile icon
lightningrock

ok if it works plz tell me

@MehdiBenkhadra

Profile icon
[deleted]
Profile icon
lightningrock

if it works plz mark as answer.
thanks


@MehdiBenkhadra

Profile icon
ErolKalayoglu

Same problem. For some reason replit doesn't support image or gif files with replit turtle, and it gives some error. Best solution is to use trinket.io