0
[solved]What's wrong in this?
In this code inhand is a variable from which money is deposited.unfortunatelt its not working. GIVE ME SOLUTION IF YOU KNOW! https://code.sololearn.com/c33SLktnClvl/?ref=app
1 Answer
+ 1
There are several issues with this program currently
1. don't use a comment on the same line as you start a code block on like line 14
2. functions will look for variable like "inhand" to be declared locally, if you want to use global variable you have to redefine them within the function as global https://www.programiz.com/JUMP_LINK__&&__python__&&__JUMP_LINK-programming/global-keyword
3. Try fixing the rest yourself and reply here if you get stuck again