I am total newbie to programming and python. I was solving a problem. I found the solution but it seems like too slow.
if n % 2 == 0 and n % 3 == 0 and\\
It's just a mathematical trick, use something like n % "LCM(1,2,...,20) == 0 which could be coded as:
n % "LCM(1,2,...,20) == 0
if n % 232792560 == 0: #do whatever you want