I am trying to make a program which will show all the teams that have more wins than losses. This is what I have tried so far but I get an error:
File "C:/Users/ACER/Desktop/sfgthg.py", line 9, in g=[c[0] for c in d.items() if c[1]>c[0]]
TypeError: '>' not supported between instances of 'list' and 'str'
d={}
while True:
x=input("name of the team?(type stop if you want to stop")
if x=="stop":
break
y=int(input("how many losses?"))
z=int(input("how many wins?"))
d[x]=[y,z]
g=[c[0] for c in d.items() if c[1]>c[0]]
print(g)