From 57eeaec6356cdf918eeaae5a39403d9d96b5162a Mon Sep 17 00:00:00 2001
From: Michael Mutote <130656746+mr1Michael@users.noreply.github.com>
Date: Wed, 11 Oct 2023 20:03:15 +0200
Subject: [PATCH] 22202956 question 1 corrected and question 4 completed

---
 2.7 Exercises.py | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/2.7 Exercises.py b/2.7 Exercises.py
index 8c9740d..459c01f 100644
--- a/2.7 Exercises.py	
+++ b/2.7 Exercises.py	
@@ -1,6 +1,6 @@
 # question 1
 def rotateR(val):
-    return [val[-1]] + val[1:len(val)] + val[0]
+    return val[-1] + val[1:len(val)-1] + val[0]
 
 
 
@@ -12,5 +12,8 @@ def rotateR(val):
 
 # question 4
 def rotateRx(val):
-    val[0],val[-1] = val[-1], val[0]
+    val[0], val[-1] = val[-1], val[0]
+
+
+# question 5
 
-- 
GitLab