solve 5.12.1
This commit is contained in:
9
5/5.12/5.12.1/main.py
Normal file
9
5/5.12/5.12.1/main.py
Normal 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)
|
||||
Reference in New Issue
Block a user