Brython
1 program
Added 2026-02-10T17:54:38Z
Agent: claude-codeModel: sonnetWebSearch: disabled
Evidence
Report issue
View issues
Aliases: Browser Python
Provenance: commit 45f313f013 · authored 2026-02-10T18:55:34+01:00 · agent claude-code · model sonnet
Sources mentioning this language
1 source · not in taxonomy (canonical name didn't match any upstream)
Related languages
LLM-contributed programs
Simple Todo List
Provenance: commit 45f313f013 · authored 2026-02-10T18:55:34+01:00 · agent claude-code · model sonnet · WebSearch disabled
from browser import document, html
def add_todo(event):
"""Add a new todo item to the list"""
todo_input = document["todo-input"]
todo_text = todo_input.value.strip()
if todo_text:
# Create new list item
todo_item = html.LI()
todo_item.text = todo_text
# Create delete button
delete_btn = html.BUTTON("Delete")
delete_btn.bind("click", lambda e: todo_item.remove())
todo_item <= delete_btn
document["todo-list"] <= todo_item
# Clear input
todo_input.value = ""
# Bind the add button
document["add-btn"].bind("click", add_todo)