I am trying to check if the number in the list is evenly equal to 25 using Python. I am not sure which is the right process. I want to do something like this:
n = [100, 101, 102, 125, 355, 275, 435, 134, 78, 550] for row in rows: if n / 25 == an evenly divisble number: row.STATUS = "Major" else: row.STATUS = "Minor"
Any suggestions are welcome.
source share