Functions should only perform a single task
Python Clean Code Tip:
Functions should only perform a single task
Hint: If your function contains the keyword 'and' you can probably split it into two functions.
# This is bad def fetch_and_display_personnel(): data = # ... for person in data: print(person) # This is good def fetch_personnel(): return # ... def display_personnel(data): for person in data: print(person)