I don’t know what I’m doing wrong, but I’ve already lost a couple of days struggling with this. Here is my command line:
players= [0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0] vote = 0 cont = 0 while(vote >= 0 and vote <23): vote = input('Enter the name of the player you wish to vote for') if (0 < vote <=24): players[vote +1] += 1;cont +=1 else: print('Invalid vote, try again')
TypeError: '<=' not supported between instances of 'str' and 'int'
I don’t have any experience with typeerror: ‘<‘ not supported between instances of ‘str’ and ‘int’. In this case, how should I change?