Please tell me the error in this

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’

could you please share your code with https://ide.codingblocks.com/.

Thanks

I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.

On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.