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.
Basic forms
More greetings
Report a typo
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
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.