solve 5.12.1

This commit is contained in:
Joe S 2021-02-07 23:37:21 -05:00
parent f609162053
commit 291fc92aa6
1 changed files with 9 additions and 0 deletions

9
5/5.12/5.12.1/main.py Normal file
View File

@ -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)