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.

7th May 2020, 2:02 AM
Cymberly Brendible
Cymberly Brendible - avatar
3 Antworten
+ 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.
7th May 2020, 2:14 AM
Cymberly Brendible
Cymberly Brendible - avatar
+ 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.
8th May 2020, 3:58 AM
Cymberly Brendible
Cymberly Brendible - avatar
+ 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
8th May 2020, 4:14 AM
Cymberly Brendible
Cymberly Brendible - avatar