Where do I write my Python code?

So, where do I write my Python code then? Where is the interpreter? How does it get to my code?

We have one word for all your questions, Trinket.

Trinket?

Yes, folks at Trinket have done an excellent job of packaging everything we need to learn Python into a super simple program that runs right here in the browser.

Trinket is your playground. You can write, run, rewrite, and rerun your code. It allows you to play endlessly with your code without the fear of breaking anything. Here’s what it includes:

  1. A Code Editor, which is where you type your code – Think of it as a canvas for your artwork.
  2. A Run button to feed your code to the Python Interpreter.
  3. An Output window or an Output box where it displays the output of your program.

Here’s a picture of Trinket with all the labels:

trinket code editor and output window

Now, this is the real Trinket where you can type and click around. Try it.

In summary, you can think of Trinket as a window through which you can talk to your computer using the Python programming language.

Can we please write some code now?

Before we can answer that question, you need to answer these questions in the homework.

COMPLETE THE QUIZ BELOW BEFORE PROCEEDING TO NEXT TOPIC or LESSON.