I seem to have a little problem here in this loop if else. Here my if statement doesn't works. My all rows gets red in colour idk probably my first condition gets corrects all time. Also when i put else's statement first my rows gets blue in colour.
from tkinter import *
def columns(clmn):
for i in range(9):
if i == 3 or 4 or 5:
Spinbox(from_=1, to=9, bg='red').grid(row=i, column=clmn)
else:
Spinbox(from_=1, to=9, bg='green').grid(row=i, column=clmnSpinbox(from_=1, to=9, bg='blue').grid(row=i, column=clmn)
for i in range(9):
columns(i)