From: Sebastián Ramírez Date: Mon, 17 Dec 2018 16:41:19 +0000 (+0400) Subject: :memo: Add second tutorial src for python-types X-Git-Tag: 0.1.12~26 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5bd167e0e7497ced568cf0e34c51df4a1f0a391d;p=thirdparty%2Ffastapi%2Ffastapi.git :memo: Add second tutorial src for python-types --- diff --git a/docs/tutorial/src/python-types/tutorial002.py b/docs/tutorial/src/python-types/tutorial002.py new file mode 100644 index 0000000000..c0857a1160 --- /dev/null +++ b/docs/tutorial/src/python-types/tutorial002.py @@ -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"))