From 291fc92aa6feb28ca26328ed2b0809a40c6f34fc Mon Sep 17 00:00:00 2001 From: Joe S <31870999+KenwoodFox@users.noreply.github.com> Date: Sun, 7 Feb 2021 23:37:21 -0500 Subject: [PATCH] solve 5.12.1 --- 5/5.12/5.12.1/main.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 5/5.12/5.12.1/main.py diff --git a/5/5.12/5.12.1/main.py b/5/5.12/5.12.1/main.py new file mode 100644 index 0000000..f55733f --- /dev/null +++ b/5/5.12/5.12.1/main.py @@ -0,0 +1,9 @@ + +def swap(list): + m_list = list[0], list[-1] = list[-1], list[0] + return m_list + +values_list = input().split(',') # Program receives comma-separated values like 5,4,12,19 +swap(values_list) + +print(values_list)