New
0. 🐍 Tutorial
1. 🔳 Chessboard
2. 🔴 Disc
3. ❌️ Tic-tac-toe
4. 🧬 Game of Life
5. 🐰 Bunny
Emoji 😀 — Color
—
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
"""
Welcome to PyKidos! This is a small JavaScript application (still rough around
the edges) that provides a Python playground running entirely in the browser,
which is convenient for teaching purposes.
The grid cells (color and text) on the right can be manipulated from Python.
You can make simple grid animations and react to click and keyboard events.
Kids (and adults) can program toy games to learn basic Python coding skills.
You have a few examples on the left, and you can create your own scripts for
your kids or for yourself!
"""
################################################################################
# PRESS CONTROL + ENTER TO RUN THE SCRIPT
################################################################################
# The standard output is displayed in the bottom right panel.
print ( "Hello world!" )
# Grid cells are 0-indexed. This is how you update a cell's color.
# There are a few common colors predefined as global variables.
color ( 0 , 1 , red )
# You can resize the grid as follows (this will clear the grid first).
# size(12, 12)
# You can enter arbitrary colors as RGB triplets (numbers in 0-255). You can
# use the color picker at the top.
for j in range ( 2 , 5 ) :
color ( 0 , j , ( 255 , 180 , 5 ))
# You can also write one short strings in cells.
text ( 0 , 6 , "Hi!" )
# Use the emoji selector at the top to write Unicode emojis.
text ( 0 , 8 , " 🍎 " )
# You can change the default size as follows:
# font(12)
# This function clears the grid:
# clear()
# This one fills all cells with a given color:
# fill(black)
# Some cell manipulation functions:
הההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההההה
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
Hi!
🍎
—
Your code is stored locally in your browser's local storage. It is never sent to any server.
PyKidos — Cyrille Rossant — GitHub repo — 2024
Color format Hex RGB HSL
Open color picker Color swatch