[solved]What's wrong in this? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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

13th Jun 2020, 12:51 AM
Mohammad Ansah Kuriyodath
Mohammad Ansah Kuriyodath - avatar
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
13th Jun 2020, 1:37 AM
JME