Im trying to append to a list. Im basically slicing up the original and rearranging it. The method im using is as follows... btw im returning a NoneType.
deck = [1,2,3,8,4,5,9,6,7]
def a(deck):
d1, d2, d3 = (deck[6 + 1:] , deck[3: 6 + 1]
, deck[:3])
deck.append((d1) + (d2) + (d3))
im getting :
[1, 2, 3, 8, 4, 5, 9, 6, 7, [6, 7, 8, 4, 5, 9, 1, 2, 3]]
how can i delete the extra '[ ]' and the the original numbers?
thanks.