]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
:memo: Add second tutorial src for python-types
authorSebastián Ramírez <tiangolo@gmail.com>
Mon, 17 Dec 2018 16:41:19 +0000 (20:41 +0400)
committerSebastián Ramírez <tiangolo@gmail.com>
Mon, 17 Dec 2018 16:41:19 +0000 (20:41 +0400)
docs/tutorial/src/python-types/tutorial002.py [new file with mode: 0644]

diff --git a/docs/tutorial/src/python-types/tutorial002.py b/docs/tutorial/src/python-types/tutorial002.py
new file mode 100644 (file)
index 0000000..c0857a1
--- /dev/null
@@ -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"))