Python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Python

In python exit() function in the called function raising an error and the calling function exception block is working ..how to rectify https://code.sololearn.com/cqOSnYRlt890/?ref=app

5th Aug 2023, 6:52 AM
CHENNAMSETTY SUMANTH
CHENNAMSETTY SUMANTH - avatar
5 Answers
+ 5
CHENNAMSETTY SUMANTH , Don't put your code in the comment...see your code is not fully visible... You write your code in code playground and save it and share the link of that here .. So we could found what is the issue...
5th Aug 2023, 7:49 AM
Riya
Riya - avatar
+ 2
Share your code
5th Aug 2023, 6:54 AM
Sakshi
Sakshi - avatar
0
Okay
5th Aug 2023, 7:51 AM
CHENNAMSETTY SUMANTH
CHENNAMSETTY SUMANTH - avatar
5th Aug 2023, 7:54 AM
CHENNAMSETTY SUMANTH
CHENNAMSETTY SUMANTH - avatar
0
You may have to call as "sys.exit()" and be sure to add "import sys" at top
6th Aug 2023, 5:14 AM
Trevor Oler
Trevor Oler - avatar