DEV Community

loading...

Discussion on: Daily Challenge #53 - Faro Shuffle

Collapse
matrossuch profile image
Mat-R-Such

python

def Faro(cards):
    half=len(cards)//2
    l, p, shuffle = cards[:half], cards[half:], list()
    for i in range(half):
        shuffle.append(l[i])
        shuffle.append(p[i])
    return shuffle