Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lære Challenge: Automated Task Assignment | Automation for Digital Agencies
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Python for Digital Agencies

bookChallenge: Automated Task Assignment

In digital agencies, assigning project tasks fairly and transparently is essential for maintaining team morale and productivity. When a new client project begins, it is common to have a list of deliverables that must be distributed among available team members. If assignments are not handled equitably, some team members may become overloaded while others are underutilized, leading to frustration and inefficiency. A round-robin approach, where tasks are distributed one by one to each team member in turn, helps ensure that everyone receives a similar workload and that the assignment process is clearly understood by all.

Opgave

Swipe to start coding

Write a script that assigns a list of project tasks to a list of team members in a round-robin manner. Each team member should receive tasks one at a time in turn until all tasks have been assigned.

  • Distribute each task from the tasks list to a member in the team_members list in sequential order, looping back to the start of the member list as needed.
  • Store each team member's assigned tasks.
  • For each team member, output their name followed by a colon and a comma-separated list of their assigned tasks. If a member has no tasks, output "No tasks assigned" after their name.

Løsning

Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5
single

single

Spørg AI

expand

Spørg AI

ChatGPT

Spørg om hvad som helst eller prøv et af de foreslåede spørgsmål for at starte vores chat

close

bookChallenge: Automated Task Assignment

Stryg for at vise menuen

In digital agencies, assigning project tasks fairly and transparently is essential for maintaining team morale and productivity. When a new client project begins, it is common to have a list of deliverables that must be distributed among available team members. If assignments are not handled equitably, some team members may become overloaded while others are underutilized, leading to frustration and inefficiency. A round-robin approach, where tasks are distributed one by one to each team member in turn, helps ensure that everyone receives a similar workload and that the assignment process is clearly understood by all.

Opgave

Swipe to start coding

Write a script that assigns a list of project tasks to a list of team members in a round-robin manner. Each team member should receive tasks one at a time in turn until all tasks have been assigned.

  • Distribute each task from the tasks list to a member in the team_members list in sequential order, looping back to the start of the member list as needed.
  • Store each team member's assigned tasks.
  • For each team member, output their name followed by a colon and a comma-separated list of their assigned tasks. If a member has no tasks, output "No tasks assigned" after their name.

Løsning

Switch to desktopSkift til skrivebord for at øve i den virkelige verdenFortsæt der, hvor du er, med en af nedenstående muligheder
Var alt klart?

Hvordan kan vi forbedre det?

Tak for dine kommentarer!

Sektion 1. Kapitel 5
single

single

some-alt