Important news about the future of Trinket. Read more →

Put Interactive Python Anywhere on the Web

Customize the code below and Share!

Trinket: run code anywhere

main.pydictonary.txt

1
2
from random import randint
alphabet=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z']
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

1
2
AAL
AALII
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Adding or removing images is disabled during broadcasting. You'll be able to update images again once the broadcast session is over.

Images

Image Library

Images listed here are available to use in your code in this trinket. Click the Image Library button to include more or upload new images.

How To Use Images

Images can be used with the turtle module.

import turtle
screen = turtle.Screen()
# set the screen background
screen.bgpic("filename.png")

# Or, set the shape of a turtle
screen.addshape("filename.png")
tina = turtle.Turtle()
tina.shape("filename.png")

Run your code first!

It looks like you haven't tried running your new code.

Try clicking Run and if you like the result, try sharing again.

Are you sure?

Resetting will undo all of your current changes.

Broadcast Control Room

  • Show code and output side-by-side (smaller screens will only show one at a time)
  • Only show output (hide the code)
  • Only show code or output (let users toggle between them)

Share Your Code!

Copy the link below to share your code

Featured Examples — click an image to try it out!

-

- -

Looking for the full power of Python 3? Check out our Python 3 Trinket