Created
November 19, 2020 16:49
-
-
Save williln/9d5a372d00b1be2679dac41449c0352a to your computer and use it in GitHub Desktop.
Choose someone from a list
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 | |
def choose(people): | |
return people[random.randint(0, len(people) - 1)] | |
people = ["Amelia", "Manuel"] | |
print(choose(people)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment