Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cards = input().split()
- shuffle = int(input())
- lenght = len(cards)
- mid = int(lenght / 2)
- for i in range(0, shuffle):
- list = []
- for p in range(0, mid):
- list.append(cards[p])
- list.append(cards[mid])
- mid += 1
- cards = list
- mid = int(lenght / 2)
- print(list)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement