Stily

Untitled

Feb 2nd, 2020
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. import copy
  2. cards=input().split()
  3. n_faro_shuffle=int(input())
  4.  
  5. deck=[]
  6.  
  7. for _ in range(n_faro_shuffle):
  8. for card in range(int(len(cards)/2)):
  9. deck.append(cards[card])
  10. deck.append(cards[int(len(cards)/2+card)])
  11.  
  12. cards=copy.copy(deck)
  13. deck.clear()
  14.  
  15. print(cards)
Advertisement
Add Comment
Please, Sign In to add comment