Skip to content

Commit 4d981cd

Browse files
committed
update readme and flask exercise
1 parent dfca77d commit 4d981cd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

054-day/hello_flask/hello.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,9 @@ def hello_world():
1010
def hello_bye():
1111
return "<p>Bye</p>"
1212

13+
@app.route("/username/<name>/<int:age>")
14+
def greetings(name, age):
15+
return f"<p>Hello there {name}, you are {age} years older.</p>"
16+
1317
if __name__ == "__main__":
14-
app.run()
18+
app.run(debug=True)

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ In this section, we focus on file operations:
376376

377377
</details>
378378

379-
### Day 54
379+
### Day 55
380380
<details>
381381
<summary>HTM, URL paths and Flask debugging </summary>
382382

0 commit comments

Comments
 (0)