sevens = range(7, 1000000, 7)
x = int(input("Please enter a positive number less than one million: "))
if x in sevens:
print("{} is divisible by seven.".format(x))
My question is why do I get the following as output? Why 3510 as the starting number when the ranges begins with 7?
3510, 83517, 83524, 83531, 83538, 83545, 83552, 83559, 83566, 83573, 83580, 83587, 83594, 83601, 83608, 83615, 83622, 83629, 83636, 83643......
Does the error has to do something with the computer memory or is the problem in my IDE(Pycharm Jetbrains)?
Thank you!