Write a program add_function1.py
that has an add()
function defined in it. The add()
function should take two parameters and then print out the sum of those two values.
The main()
program should have the user enter two numeric values, and then call the add()
function to print out the sum of those two values.
Sample interaction:
Enter a number: 3
Enter another number: 2.5
By sending these two numbers to a function, I have calculated the sum as 5.5