primo
py
Run
Stop
Continue
⌘↵
Done
Stop
Record
Examples
Examples
1 · Variables and print
2 · Draw your first shapes
3 · Loops and lists
4 · Draw with a loop
5 · Functions and the call stack
6 · Find the bug
7 · Draw a whole scene
8 · Asking questions with input()
9 · Import a second file
10 · numpy and a plot
11 · A package folder
12 · Read a file, write a file
13 · Append to a log
14 · A CSV of scores
15 · Conway's Game of Life
16 · Snake, with the keyboard
· take the tour ·
· clear saved work ·
Open…
Open folder…
Save & share
Your work stays saved in this browser. To keep a copy elsewhere:
Download all files
the files on your computer, as a ZIP
Download document as .md
its Markdown and files, as a ZIP
Download document as .ipynb
a Jupyter notebook, outputs and all
Save to a folder…
all files, and every change after, as you type
Link to all files
all files, as they are now
Link to all files + current chat
all files, and this tutor chat
Download all chats
every chat with the tutor, as text
Cancel
Replace the folder's
Keep both
Cancel
Copy link
Open in Rprimo
Download ZIP
Undo
◐
Tour
Handbook
Variables
Tutor
☰
Document
Update outputs
Reset
×
console
Download
Console
Runs in the project folder. Names from the last run are here too.
Clear
Attach
Continue
>>>
Packages
Extra code your program can import.
Restart
Install
Execution tape
Drag to travel through the run. Bar height = call depth.
Start
Back
Detail
Detail
Step
Over
Out
Continue
no trace yet
Output
Plots
0
Display
0
Draw
Starting Python…
Program output appears here.
Charts made with the
matplotlib
library appear here, one card for each
plt.show()
.
See the handbook on output, plots and drawings
.
Whatever a program hands to
display()
appears here, one card each — a picture if the object knows how to draw itself, its
repr
if it does not.
See the handbook on output, plots and drawings
.
Drawings made with
draw
from
primopy
appear here.
See the drawing reference
.
Skip
Next