mirror of
https://github.com/fastapi/fastapi.git
synced 2026-05-18 21:39:22 -04:00
📝 Add second tutorial src for python-types
This commit is contained in:
6
docs/tutorial/src/python-types/tutorial002.py
Normal file
6
docs/tutorial/src/python-types/tutorial002.py
Normal file
@@ -0,0 +1,6 @@
|
||||
def get_full_name(first_name: str, last_name: str):
|
||||
full_name = first_name.title() + " " + last_name.title()
|
||||
return full_name
|
||||
|
||||
|
||||
print(get_full_name("john", "doe"))
|
||||
Reference in New Issue
Block a user