Last active
June 28, 2019 16:49
-
-
Save nnja/0345f72f9ce8b5f1eee8162ffa3e2857 to your computer and use it in GitHub Desktop.
Python script to select a random person to take notes in a meeting ⌨️🎉
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 | |
participants = ["Lena", "Seth", "Paul", "Suz", "Nina", "Burke", "Todd"] | |
print(f"{random.choice(participants)} is taking notes.") |
Thanks @nnja!
These examples are really helpful !
Saw this notice in an <a href=''https://Holbertonschool.com> project</a>
and thought it was interesting. I am having to come up with a project for githib and thought I would take a peak here. Best wishes for you. gDavis.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@tbalz2319
Your code doesn't close the file. The clearer and more Pythonic way to achieve the same result would use a context manager, like this:
Or, if your main concern is not having to type quotes and commas, just just a multi-line string, like so: