Write a Python program to add two numbers. Your Python program must have a function called add that is placed in a separate module called helper.py. Your main program, which is also a standalone Python program main.py must import helper.py and use this module to add the two numbers.
The numbers to be added must be passed via the command line.
Here is an example of how your program would be invoked assuming the numbers to be added are 3 and 2: python main.py 3 2
my code
first cell :
%%writefile helper.py
def add(x,y):
return x + y
second cell:
%%writefile main.py
import helper.py
def main():
num1 = int(input("Enter a number: "))
num2 = int(input("Enter a second number: "))
print(helper.add(num1, num2))
if __name__ == '__main__':
main()