i have been having this issue for about a month and i've tried solving it many times, the solution i'm going to post worked for 2 days before deciding not to work for some reason even though it is completely correct syntactically, clearly there are issues can anyone help me please
it always calls 'c' for some reason even when i type 'love' it still calls c which i've very clearly told it not to do
i have been having this issue for about a month and i've tried solving it many times, the solution i'm going to post worked for 2 days before deciding not to work for some reason even though it is completely correct syntactically, clearly there are issues can anyone help me please
it always calls 'c' for some reason even when i type 'love' it still calls c which i've very clearly told it not to do
c = int(0)
csharp = int(0)
d = int(0)
dsharp = int(0)
e = int(0)
f = int(0)
fsharp = int(0)
g = int(0)
gsharp = int(0)
a = int(0)
asharp = int(0)
b = int(0)
def add_item(event=1):
global list1
global c
global csharp
global d
global dsharp
global e
global f
global fsharp
global g
global gsharp
global a
global asharp
global b
if list1.append(entry1.get()) != "":
listbox.insert(tk.END, entry1.get())
#entry1.set("")
if list1 == ["happy"] or ["cheerful"] or ["sunny"] or ["daytime"]:
c = c + 1
elif list1 == ["seldom"] or ["quaint"] or ["surly"] or ["discontent"]:
csharp = csharp + 1
elif list1 == ["triumphant"] or ["warlike"] or ["symphony"] or ["rejoice"]:
d = d + 1
elif list1 == ["love"] or ["god"] or ["heart"] or ["pop"]:
dsharp = dsharp + 1
elif list1 == ["joy"] or ["pleasure"] or ["laughter"] or ["delight"]:
e = e + 1
elif list1 == ["calm"] or ["complaisance"] or ["relaxing"] or ["soothing"]:
f = f + 1
elif list1 == ["relief"] or ["conquering"] or ["completeness"] or ["battle"]:
fsharp = fsharp + 1
elif list1 == ["rustic"] or ["idyllic"] or ["satisfying"] or ["tender"]:
g = g + 1
elif list1 == ["death"] or ["grave"] or ["dark"] or ["doom"]:
gsharp = gsharp + 1
elif list1 == ["innocence"] or ["affair"] or ["beloving"] or ["parting"]:
a = a + 1
elif list1 == ["cool"] or ["wild"] or ["bewildering"] or ["magestic"]:
asharp = asharp + 1
elif list1 == ["night"] or ["party"] or ["starry"] or ["galactic"]:
b = b + 1``