Quiz

In this lesson, we will solve a quiz to test the concepts that we have covered.

1

In the application given below, which URL must the user visit for the string "Join our Community!"

from flask import Flask
app = Flask(__name__)

@app.route("/")
def  home():
    return "Welcome!"

@app.route("/join")
def join():
    return "Join our Community!"
  
@app.route("/login")
def join():
    return "Login to our portal."

if __name__ == "__main__":
    app.run(debug=True, host="0.0.0.0", port=3000)
A)

<Application_URL>

B)

<Application_URL>/

C)

<Application_URL>/join

D)

<Application_URL>/login

Question 1 of 30 attempted

Get hands-on with 1400+ tech skills courses.