Week 11 - Math Olympiad
Post date: Jan 7, 2017 4:09:05 AM
number = 2 * 3 * 5 * 7 * 11
for x in range(1, 6):
guess = number * 2 * x
sGuess = str(guess)
if len(sGuess) != 4: continue
if sGuess.count("6") > 0: continue
if sGuess.count("9") != 1: continue
print(guess)
42
multipliers = input("How many multipliers?")
multi = []
for x in range(1, int(multipliers) + 1):
multi.append(input("Give me a multi:"))
print(multi)