#------------------------------------------------------------------------------ # Range.py #------------------------------------------------------------------------------ def f(n): """ Find the smallest positive integer between 101 and less than n that is divisible by 21 """ for i in range(101, n): # try replacing range() by list(range()) if (i % 21 == 0): return i # end if # end for # end f() # function main() ------------------------------------------------------------- def main(): print( f(110) ) print( f(10_000_000) ) # end main() # closing conditional --------------------------------------------------------- if __name__=='__main__': main() # end