I apologize if this seems very basic, I'm new to Python and learning. I have a task I'm working on but I can't seem to get the print to work in my function. When I run it, I get nothing, no output. I've tried looking up the basics for this, but maybe it's so simple I'm overlooking it? Any guidance would be appreciated.
# create a function which receives two integers as input, adds them. Run your function with integers 2 and 8, and save the output to a new variable called myNewSum. Print myNewSum. expected outcome: 10
num1 = int(2)
num2 = int(8)
def add_numb(num1, num2):
myNewSum = num1 + num2
print(myNewSum)
add_numb?num1 = int(2).2is an integer, sonum1 = 2is enough.