Important news about the future of Trinket. Read more →

Getting Started

Step 1.

Make your first trinket

Step 2.

Share a trinket

Step 3.

Copy a trinket

Frequently Asked Questions

What is trinket?

trinket is an all-in-one coding environment designed for education. Teachers and students use trinket to code during class, while online courses and coding clubs use trinket to make interactive projects for their students.

How can I get started with trinket?

Try out some of our sample projects! There are examples on your "My Trinkets" page. We also have some video projects on our blog you might enjoy.

If you're looking for basic Python knowledge, take a look at our website hourofpython.com. Or, if you're looking for more general information about using this site, head over to docs.trinket.io.

How do I add an interactive trinket to my website?

First, save your trinket. Then, scroll down and select the "Add to your site" tab, if it is not already selected. Click on the text in the box, which will look like this:

<iframe src="https://trinket.io/embed/python/b9b4074bb7" width="100%" height="400" frameborder="0" marginwidth="0" marginheight="0" allowfullscreen></iframe>

Copy this text and paste it into the HTML for your web page. You can also use the provided options to control how the trinket looks and acts on your website.

Learn more about embedding trinkets here.

Video Tutorials

Getting Started with Turtle

Your First Interactive Program

Lists, Loops, and Logic in Python

Custom Classes and Objects in Python

Our Documentation Courses

Getting Started with trinket

Getting Started with Python

Teaching with trinket

Step 1.

Create a Course

Step 2.

Add Content & Trinkets

Step 3.

Add Students & Collaborators

Learn more and get ideas about teaching with trinket from Part 3 of our trinket documentation course.