Aug-20-2018, 01:31 AM
i've been doing things like this to convert arguments or input numbers:
number = int(sys.argv[1])now i have found a different way that is more fun though it needs more coding:
try: number = eval(sys.argv[1]) except: print('oops!') error_count += 1if you want the traceback info, don't use the try/except. then you don't have to calculate formulas to enter their values (though you might have to use quotes around many formulas for most command shells).
Tradition is peer pressure from dead people
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.