Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a=[15, 30, 45, 60, 75, 90]
- def split_in_two(x,y):
- if y%2==1:
- print(x[0:2])
- else:
- print(x[2:])
- split_in_two(a, 5)
- split_in_two(a, 2)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement