[Python] How to print numbers from 0 to 100 that are divisible by 3 and also 5?

Discussão em 'Python' iniciado por Stack, Junho 25, 2025.

  1. Stack

    Stack Membro Participativo

    I am a newbie to programing and i am doing python related exercises and i ran into this problem, where i have to print all the numbers divisible by 3 and also 5.

    I know it is somehow related to the for loop with range but i cant figure it out.

    I tried looking for solutions but those are out of my league i don't understand them.

    for number in range (0, 100, 3):
    j = number / 5
    print (j)


    i tried it like this but i get decimals for answer

    Continue reading...

Compartilhe esta Página