+ 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

13th Aug 2020, 3:34 PM
Gajendra Sonare
Gajendra Sonare - avatar
2 Respuestas
+ 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
13th Aug 2020, 3:48 PM
Taste
Taste - avatar
+ 4
Gajendra Sonare , can you give us some input samples and what you expect that the output should be. Thanks!
13th Aug 2020, 5:24 PM
Lothar
Lothar - avatar