diff options
Diffstat (limited to 'progs/a24.py')
-rw-r--r-- | progs/a24.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/progs/a24.py b/progs/a24.py new file mode 100644 index 0000000..5f8bae7 --- /dev/null +++ b/progs/a24.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 |