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

diff --git a/docs/tutorial/src/python-types/tutorial001.py b/docs/tutorial/src/python-types/tutorial001.py
new file mode 100644 (file)
index 0000000..0903943
--- /dev/null
@@ -0,0 +1,6 @@
+def get_full_name(first_name, last_name):
+    full_name = first_name.title() + " " + last_name.title()
+    return full_name
+
+
+print(get_full_name("john", "doe"))