import sys
def printdata():
print(sys.argv)
def printsum():
print(int(sys.argv[1]) + int(sys.argv[2]))
printsum()
it is showing error :
ValueError Traceback (most recent call last)
in ()
7 print(int(sys.argv[1]) + int(sys.argv[2]))
8
----> 9 printsum()
in printsum()
5
6 def printsum():
----> 7 print(int(sys.argv[1]) + int(sys.argv[2]))
8
9 printsum()
ValueError: invalid literal for int() with base 10: ‘-f’