Skip to content

Instantly share code, notes, and snippets.

@howtomakeaturn
Created August 6, 2014 07:56
Show Gist options
  • Save howtomakeaturn/61caf23d563f1ba5b765 to your computer and use it in GitHub Desktop.
Save howtomakeaturn/61caf23d563f1ba5b765 to your computer and use it in GitHub Desktop.
python
#!/usr/local/bin/python2.7
import random
input_list = ['A', 'B', 'C', 'D', 'E']
lists = [[], [], []]
random.shuffle(input_list)
while input_list:
char = input_list.pop()
lists[random.randint(0,2)].append(char)
print lists
@fadhelsoltani
Copy link

what is the Function of your Code ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment