More greetings

Report a typo

You have a piece of flask code that asks the user's name and surname. It then returns the Hello, guys! I am the_user_name_surname message. Your task is to fill in the gaps in the square braces properly. You see the main HTML code greet.html that is required to complete the task below.

HTML code greet.html

Write a program in Python 3
@app.route("/greet",methods=["POST"])
def greet_user():
first_name = request.form[...]
last_name = request.form[...]
fullname = " ".join((first_name, last_name))
greeting_phrase = f"Hello, guys! I am {fullname}"
return greeting_phrase
___

Create a free account to access the full topic