Question: Upload Assignment: Program Assignment# 3 INSTRUCTIONS Function Example: Write a Python function that receives two integer arguments and writes out their sum and their product.

Upload Assignment: Program Assignment#3
INSTRUCTIONS
Function Example: Write a Python function that receives two integer arguments and writes out their sum and their product. Assume no global variables.
def writer (n1,n2) :
sum =n1+n2
product =n1**n2
print("For the numbers", n1, "and", n2)
print("the sum is", sum)
print ("and the product is", product)
Write a Python main program that calls the above function to shows that the function work properly.
To receive homework credit submit the python source (*.py file listing) and a screen shot of the running program.
 Upload Assignment: Program Assignment#3 INSTRUCTIONS Function Example: Write a Python function

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!