Skip to content
Snippets Groups Projects
Commit 57eeaec6 authored by Michael Mutote's avatar Michael Mutote
Browse files

22202956

question 1 corrected and question 4 completed
parent 87e0c38e
No related branches found
No related tags found
No related merge requests found
# question 1 # question 1
def rotateR(val): 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): ...@@ -12,5 +12,8 @@ def rotateR(val):
# question 4 # question 4
def rotateRx(val): def rotateRx(val):
val[0],val[-1] = val[-1], val[0] val[0], val[-1] = val[-1], val[0]
# question 5
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment