mirror of
https://github.com/rjNemo/fastapi
synced 2026-06-06 10:36:39 +00:00
📝 Add second tutorial src for python-types
This commit is contained in:
parent
58b69493a9
commit
5bd167e0e7
1 changed files with 6 additions and 0 deletions
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"))
|
||||
Loading…
Reference in a new issue