+ 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
3 Answers
+ 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.
+ 2
Oh oops, sorry but happy it helped!
+ 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