+ 1
Can you please tell me what is the cause of that error ?
After raising the ValueError the code should skip that part but why is then it saying "check_right is not defined" ? https://code.sololearn.com/c8iCMFv1OU4h/?ref=app
2 Answers
+ 4
its the scoping. if you define anything inside a block it will only be available inside that block
in your code check_right defined inside try block, but being called from the outside
+ 4
Gajendra Sonare , can you give us some input samples and what you expect that the output should be. Thanks!