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

22202956

Question 1 corrected
Question 4 was incorrect. removed it.
Question 5 done.
Question 6 done.
parent 14e7dc4f
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)] if len(val) > 0 else None
return val[-1] + val[:-1] if len(val) > 0 else None
......@@ -24,4 +24,6 @@ def rotateRx_modified(val):
# So the only way to achieve this would be to return a value and assign it back.
pass
# question 6
def rotateR2(val):
return rotateR(rotateR(val))
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