Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- pack=[] # Defining the pack of cards
- colours = ['\u2660', '\u2661', '\u2662', '\u2663']
- numbers = ['2','3','4','5','6','7','8','9','10','J','Q','K','A']
- for val in numbers:
- for col in colours:
- pack.append(val+col) # Example: 'J\u2663'
- for x in range (0,len(l)): # "Attempt" at a solution. Obviously does not work.
- for i in range (1, len(l)):
- if l[i] == l[x]:
- l.remove(l[x])
- l.remove(l[x])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement