+ 1

why does this have an error? I'm making a market python game, but idk what the problem is.

https://sololearn.com/compiler-playground/c6hm02C68i1f/?ref=app

2nd Jul 2024, 8:10 PM
CyberX And CorruptedTiger
CyberX And CorruptedTiger - avatar
3 Antworten
+ 8
Read the error message. It tells you that the start function does not k ow what you mean by "money". You declared "money" outside of the function. So you a) have to pass "money" to the function, or b) make sure that the function knows that by "money" you mean the global variable. The same applies to the other items that you declared outside of the function.
2nd Jul 2024, 8:24 PM
Lisa
Lisa - avatar
+ 2
Oh oops, sorry but happy it helped!
2nd Jul 2024, 9:19 PM
Chris Coder
Chris Coder - avatar
+ 1
ok thx Chris Coder and Lisa for the answers I will now be editing the code ok Chris Coder just deleted reply 😐 ok nvm
2nd Jul 2024, 8:58 PM
CyberX And CorruptedTiger
CyberX And CorruptedTiger - avatar