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

22202956

question 1 corrected and question 4 completed
parent f1ffe9ba
No related branches found
No related tags found
No related merge requests found
# question 1
def rotateR(val):
return [val[-1]] + val[1:len(val)] + val[0]
def rotateR(val):
val[0],val[-1] = val[-1],val[0]
# question 4
def rotateRx(val):
val[0],val[-1] = val[-1], val[0]
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