Python - Weird Error Encountered
Hey, so I'm building a game. I asked a question before. (Click to view the question) I did all the load stuff different, but then I encounter this (really) weird error:
Help please!
Voters
Ask coding questions
Hey, so I'm building a game. I asked a question before. (Click to view the question) I did all the load stuff different, but then I encounter this (really) weird error:
Help please!
Here is the code that's broken:
The reason why it's not working is because
load
is reading a string and not bytes. Replace ther
(read) withrb
(read bytes) to fix that.Also, in lines 14-19 you are trying to get information from company_data with invalid variables. To fix this, replace them with strings (add quotes around stores, offices, etc)
Please mark my comment as the answer if it helped you. Thanks!
@mat1 Cool. Thanks!