Fire drill sums
LOCKEDThe fire alarm goes off and the door only opens for the right number. The rule on the sign: add up every whole number from 1 to 1000 that is a multiple of 7 or a multiple of 13, but is not a multiple of 5.
Your task: Use a loop and MOD to build the total. Be careful with the brackets around your OR.
148.HINT: Loop from 1 to 1000. The test is (multiple of 7 OR multiple of 13) AND NOT multiple of 5. Without brackets around the OR, Python gets it wrong.