Created
January 10, 2016 04:23
-
-
Save codeboy101/a157801c7fb80a2d8774 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
| people_list = ['john' , 'sherlock' , 'molly'] | |
| while len(people_list) > 1 : | |
| for i in range(0,10) : | |
| x = random.choice(people_list) | |
| if i == 5 : | |
| people_list.remove(x) | |
| print(people_list) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment