I have been given this question to do in Python:
Take in a list of numbers from the user and run FizzBuzz on that list.
When you loop through the list rememb
n % 3 (or n % any number) does not evaluate to True or False, it's not a Boolean expression. n % 3 == 0 on the other hand, does.
n % 3
n %
True
False
n % 3 == 0
As an aside, what happens when n % 3 == 0 and n % 5 == 0 both evaluate to True?
n % 5 == 0