+ 9

Challenge: Create Gift Exchange Randomizer

Description: Some families for Christmas do what is called a gift exchange where everyone puts their name into a pot and they pull out names to see who they will give a gift to that year. Can you create your own program to do this? Requirements: 1. Input should allow 4 or more names, amount should be even number. 2. every person should be assigned another persons name and not their own name. so input: Terry Bob Susan Charlie would output something like (randomized): NAME - ASSIGNMENT Terry - Charlie Bob - Susan Susan - Terry Charlie - Bob

6th Dec 2017, 3:56 PM
Logan
Logan - avatar
3 odpowiedzi
+ 2
I didn't use the random class! (but esed shuffle). https://code.sololearn.com/cLmsIklNARcJ/?ref=app
8th Dec 2017, 4:51 PM
abdulazizumarovich
abdulazizumarovich - avatar