Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from random import choice
- left_holding = []
- right_holding = []
- pens = ['Red', 'Orange', 'Yellow', 'Green', 'Blue', 'Indigo', 'Violet', 'Black', 'White', 'Grey']
- def add_pen_to_hand(hand):
- pen_picked = choice(pens)
- hand.append(pen_picked)
- pens.remove(pen_picked)
- repeats = len(pens)
- for x in range(int(len(pens)/2)):
- add_pen_to_hand(left_holding)
- add_pen_to_hand(right_holding)
- print("\nYour left hand is holding these colour pens\n", left_holding)
- print("\nYour right hand is holding these colour pens\n", right_holding)
- print()
Advertisement
Add Comment
Please, Sign In to add comment