Last active
November 2, 2016 15:55
-
-
Save noveoko/bdac6c59ef543331fed77c5f23b1c2b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from random import shuffle | |
comics = ['Ricky','Ashley','Kamil','Daniel','Trevor','Tomek'] | |
special_request = 'Christine' | |
def shufflez(list): | |
long_list = [] | |
total = 0 | |
while total < 1000: | |
long_list.append(random.choice(comics)) | |
total += 1 | |
k = set(long_list) | |
new_list = [] | |
for a in k: | |
new_list.append(a) | |
new_list.insert(2,special_request) | |
return new_list | |
for a in shufflez(comics): | |
print(a) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment