I had typed in a code for the first practice problem of adding two numbers in Python3.6 language. It wasn’t letting me submit as it raised Runtime Error. I programmed using functions to make it look better in a way. I tried running the code on PyCharm, and it worked well.
def add(n1, n2):
sum_result = n1 + n2
ch = input(“Do you want to add numbers?(y/n)”)
num1 = int(input(“Enter the first integer :”))
num2 = int(input(“Enter the second integer :”))
result = add(num1, num2)
print("The sum of the two numbers ", num1, "and ", num2, “is:”, result)
print(“See you next time!”)
This is the code.