0
Why is this happening?
TypeError: '<' not supported between instances of 'str' and 'int' I did a search and read some texts, but I just can't seem to find a solution.
3 odpowiedzi
+ 1
Thanks.
That's already a better explanation than the run around explanation I keep getting from a search.
I'll mull this over and see if I can solve it myself first.
+ 1
Solved that one. I'm stuck on another part now:
pen.write("Player A: {} Player B: {}", format(score_a, score_b), align="center", font=("Courier", 16, "normal"))
I keep getting "Expected type 'bool', got 'str' instead". Every time I "fix it" to a suggested edit from the python forum or another way I thought might be a fix, I get another error and my window collapses. I'm having a hard time finding a solution.
+ 1
Could it really be that simple lol... I'll give that a try first before I dig further and end up ruining the whole code.
I'm pretty new to coding. Been grinding on here and freecodecamp as well as consuming any and every text I can find. Kind of being a nerd about it lol