For Python Range, Using flag variable The program checks whether the number is .