How to take Input in jupyter notebook for this function

I am not able to take input in this function in jupyter notebook, please help me get input in jupyter notebook.

def printsum():
print(int(sys.argv[1])+int(sys.argv[2]))

printsum()

Hey @amananand, sys is a module which is used to communicate with the command line arguments. For you to be able to give input in this function, I would suggest you to make a .py file and run it from the command prompt itself.

Hope this helps.
If you still have doubts, you can revert back.
Happy Learning :slight_smile:

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.