input_num = Element("how-many")
out = Element("target")
out2 = Element("target2")
def click_event(*ags, **kwgs):
n = int(input_num.value)
str_n = str(input_num.value)
out.write(n)
pyscript.write('outputDiv',n)
out2.element.innerText += str_n
def on_click(evt):
click_event()