Photo of Alpe Foppa
PyTamaro logo

Learn Programming in Python with Graphics

Start Simple By Calling Functions
root = sqrt(2) print(root)
Python logo
1.4142135623730951
field = rectangle(100, 60, green) show_graphic(field)
Try it!
Python logoPyTamaro logo
Graphical output from execution result
Define Functions
def add(a, b): return a + b print(add(2, 3))
Python logo
5
def circle(diameter, color): return ellipse(diameter, diameter, color) show_graphic(circle(75, red))
Try it!
Python logoPyTamaro logo
Graphical output from execution result
Use Selection and Repetition
numbers = [52, -4, 17, 34, 50, 24, -17, 60, 47] total_even = 0 for number in numbers: if number % 2 == 0: total_even = total_even + number print(total_even / len(numbers))
Python logo
24.0
diameters = [52, -4, 17, 34, 50, 24, -17, 60, 47] bubbles = empty_graphic() for diameter in diameters: if diameter >= 0: bubbles = beside(bubbles, circle(diameter, blue)) show_graphic(bubbles)
Try it!
Python logoPyTamaro logo
Graphical output from execution result
And Much, Much More!

Learn with PyTamaro

Teach with PyTamaro

PyTamaro is a synergistic collaboration between university and school teachers
The library is an open-source project hosted on GitHub

Logo of PyTamaro

PyTamaro is a project created by the Lugano Computing Education Research Lab at the Software Institute of USI

Privacy PolicyPlatform Version e41852e (Wed, 06 Nov 2024 09:21:27 GMT)