python adding calculator
First, you'll need to import the add
function from the operator
module. Then, create a function called add_numbers
that takes two parameters, num1
and num2
. Inside the function, use the add
function to add num1
and num2
together, and then return the result. Finally, call the add_numbers
function with the numbers you want to add, and print the result.