Don't force args

This commit is contained in:
flyingscorpio@pinebookpro 2022-01-17 13:20:37 +01:00
parent 703341f267
commit 0232d6c038

View file

@ -9,9 +9,12 @@ import sys
def main():
assert len(sys.argv) == 3
a = int(sys.argv[1])
b = int(sys.argv[2])
if len(sys.argv) == 3:
a = int(sys.argv[1])
b = int(sys.argv[2])
else:
a = int(input("a : "))
b = int(input("b : "))
# Initialisation
r = ["r", a, b]