Last active
March 24, 2023 10:47
-
-
Save laojala/922f908a9d1f936ff99ddb4a3b974ad8 to your computer and use it in GitHub Desktop.
Print order of participants and talking points for a daily team 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
''' | |
Daily Generator | |
Prints a random order of the ATTENDEES and QUESTIONS for daily. | |
''' | |
import sys | |
from random import shuffle | |
# Modidy this list for attendees | |
ATTENDEES = ['Alex', | |
'Quinn', | |
'Sky', | |
'Vale'] | |
# Modify this list for questions | |
QUESTIONS = ['How are you doing?', | |
'Wins', | |
'Frustrations', | |
'Focus', | |
'Help needed'] | |
def print_numbered_list(printing:list) -> None: | |
'''Prints numbered list. List is given in arguments.''' | |
for number, item in enumerate(printing,1): | |
print(f'{number}. {item}') | |
def print_daily_questions() -> None: | |
'''Prints static list QUESTIONS''' | |
print('\n\nDAILY QUESTIONS:') | |
print_numbered_list(QUESTIONS) | |
def print_random_attendees_order() -> None: | |
'''Prints random order from a static list ATTENDEES''' | |
print('\nDAILY ORDER:') | |
to_random = ATTENDEES[:] | |
shuffle(to_random) | |
print_numbered_list(to_random) | |
def main() -> None: | |
'''Prints daily questions and attendees''' | |
print_daily_questions() | |
print_random_attendees_order() | |
if __name__ == "__main__": | |
sys.exit(main()) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment