print(1 + 1)
import this
print({i: str(i) for i in range(10)})
While it mostly quacks like a Python, Brython can do some tricks with its browser
module.
import browser
browser.document.write("Hi there!")
It even overloads <=
to provide a simple native tree interface
from browser.html import *
t = TABLE()
t <= TR(TH('Number')+TH('Square'))
t <= (TR(TD(i)+TD(i*i)) for i in range(10))
browser.document.body <= t