Why use modulo?


#1

[Challenge] Print Times Tables 🖨❎

@hiro_protagonist I believe that your use of if x%2 !=0: is superfluous.


[Challenge] Print Times Tables 🖨❎
#2

I agree with @cloudrunner15916, and using while loop is ok, but range defined above can be used twice using for loop in @hiro_protagonist case.

def oddTimesTables():
    a = range(1,13,2)
    for x in a:
        for y in a:
            print(x*y,end=' ')
        print()
    return
      
oddTimesTables()