Python with PyScript

def greet_user(*args, **kwargs): name = Element("name-input").element.value greeting_element = Element("greeting") greeting_element.write(f"Hello, {name.upper()}!") # Attach the greet_user function to the button click event Element("submit-btn").element.onclick = greet_user