From 31b420b057c176d7137b29e06eca097f190f6f9f Mon Sep 17 00:00:00 2001 From: Michael Mutote <130656746+mr1Michael@users.noreply.github.com> Date: Wed, 11 Oct 2023 12:53:16 +0200 Subject: [PATCH] 22202956 question 1 complete --- 2.7 Exercises.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/2.7 Exercises.py b/2.7 Exercises.py index 72d7bb3..5d05730 100644 --- a/2.7 Exercises.py +++ b/2.7 Exercises.py @@ -1,2 +1,12 @@ # question 1 + +def rotateR(val): + val[0],val[-1] = val[-1],val[0] + + +a = [1,2,3,4] + +rotateR(a) + +print(a) -- GitLab