New
0. 🐍 Tutorial
1. 🔳 Chessboard
2. 🔴 Disc
3. ❌️ Tic-tac-toe
4. 🧬 Game of Life
5. 🐰 Bunny
Emoji 😀 Color
"""
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.
Color format