Posts by Douglas Viegas • 53 points
1 post
-
5
votes1
answer1155
viewsQ: Get the smallest positive number that is divisible by all numbers from 1 to 20
I made a code in a way that works, but it doesn’t look anything pythonic, and takes a lot of time. i = 1 numero = 1 while i != 0: if numero % 1 == 0 and numero % 2 == 0 and numero % 3 == 0 and…