Skip to content

Instantly share code, notes, and snippets.

@laojala
Last active March 24, 2023 10:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save laojala/922f908a9d1f936ff99ddb4a3b974ad8 to your computer and use it in GitHub Desktop.
Save laojala/922f908a9d1f936ff99ddb4a3b974ad8 to your computer and use it in GitHub Desktop.
Print order of participants and talking points for a daily team meeting
'''
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