We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e7b27c7 + 444b681 commit a45bad5Copy full SHA for a45bad5
split.py
@@ -0,0 +1,5 @@
1
+def split_in_two(elements, num):
2
+ if num%2 == 0:
3
+ return elements[2:]
4
+ else:
5
+ return elements[:2]
0 commit comments