Aug-20-2018, 11:11 AM
in which world your snippet with
or if you want it with try/except
eval
is better than the other one?or if you want it with try/except
try: number = int(sys.argv[1]) except: print('oops!') error_count += 1I also fully agree with Gribouillis that you will be better using package like click or similar...
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs