summaryrefslogtreecommitdiff
path: root/progs/a954.py
diff options
context:
space:
mode:
Diffstat (limited to 'progs/a954.py')
-rw-r--r--progs/a954.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a954.py b/progs/a954.py
new file mode 100644
index 0000000..78b3aa1
--- /dev/null
+++ b/progs/a954.py
@@ -0,0 +1,6 @@
+def swap_List(newList):
+ size = len(newList)
+ temp = newList[0]
+ newList[0] = newList[size - 1]
+ newList[size - 1] = temp
+ return newList \ No newline at end of file