Skip to content

Instantly share code, notes, and snippets.

@codeboy101
Created January 10, 2016 04:23
Show Gist options
  • Select an option

  • Save codeboy101/a157801c7fb80a2d8774 to your computer and use it in GitHub Desktop.

Select an option

Save codeboy101/a157801c7fb80a2d8774 to your computer and use it in GitHub Desktop.
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