nested loop

for a in range(1,3):
    if a%2!=0:
        print(a,end=" ")
        
    for b in range(1,a+1):
        if b%5==0:
         print(b,end=" ")
         
        for c in range(a,b+1):
            if c%3!=0:
             print(c,end=" ")

    print() 

Here is what the above code is Doing:
1. It is printing all the odd numbers from 1 to 3.
2. It is printing all the numbers which are divisible by 5 from 1 to 3.
3. It is printing all the numbers which are not divisible by 3 from 1 to 3.