Skip to content

@rickysaltzer /gist:3351508
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
import random
some_cards = ["9 of hearts", "10 of diamonds", "5 of clubs", "king of spades", "king of clubs", "ace of spades"]
some_other_cards = ["9 of hearts", "10 of diamonds", "5 of clubs", "king of spades", "king of clubs", "ace of spades"]
new_cards = []
fancy_cards = []
for i in range(0,len(some_cards)-1):
new_cards.append(some_cards.pop(random.randint(0,len(some_cards)-1)))
print("New Cards:")
print(new_cards)
new_cards = [some_other_cards.pop(random.randint(0,len(some_other_cards)-1)) for i in range(0,len(some_other_cards)-1)]
print("\nFancy Cards:")
print(new_cards)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.