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.
1 parent 229f8d6 commit 444b681Copy full SHA for 444b681
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