# Lesson 1.11 Modulo

#1

I dont understand the Food For thought question .

Also,

I dont understand how giving me the remainder of the quotient of 27/4 is the same as which group im assigned to.

which leads me to believe that im not understanding the purpose and use of Modulo at all.

Any help would be great thanks.

#2

could you share the url/address of the exercise?

#3

#4

confusing. The only way this make sense to me is that you say:

person 1 is in team 1
person 2 is in team 2
person 3 is in team 3
person 4 is in team 4
person 5 is in team 1
person 6 is in team 2
person 7 is in team 3
person 8 is in team 4

and so on and so forth.

but its a bit confusing. The problem you have to overcome here is that person 4, 8, 12, 16, 20, 24 and so on will be in team zero, so you would have to tweak that manually to make it 4, to make it human friendly

#5

some code to prove this:

``````for i in range(1, 28):
print("person: %d" % i, end=", ")
team = i % 4
if team == 0:
print("team: 4")
else:
print("team: %d" % team)
``````

#6

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.