I dont understand how modulo actually assigns the group team that a person would be in.
in this exercise the task is to use modulo to determine which team I would be in. However, modulo is just a operation that gives the remainder. Meaning that the information given shows simply that the number of individuals to choose from is not evenly divisible by the number of teams.
my_team = 27 % 4
my_team2 = 26 % 4
my_team3 = 28 % 4
i understand it to mean that with 27 people and 4 teams there will be three people left over without a team.
26 people and 4 teams = 2 people without a team.
but 28 people and 4 teams = 0 people without a team.
am I missing something or is this question worded poorly?