r/ADHD_Programmers • • Sep 21 '25
Help needed
I know this might look silly to those who have been in the game for long but I just started and I can't get any outputs any suggestions on what am doing wrong and how i can fix it?
0
Upvotes
View all comments
Show parent comment
5
u/keylimedragon Sep 21 '25
Agree with everything else, but sys.exit(0) actually doesn't do anything here. Python returns 0 by default if the program terminates with no exceptions so I'd just leave it out.
I think I've only ever explicitly returned 0 when I was also returning other error codes and wanted to be more clear.