Question: for Python 3 Write a function called min2 that takes two arguments. The second argument should be a default argument with a default value of

for Python 3

Write a function called min2 that takes two arguments. The second argument should be a default argument with a default value of 0. The function will return the minimum of the 2 arguments. Prompt the user for two integers. Call the function with the first number typed and no second argument. Print the results. Call the function again with both numbers the user types. Print the results.

Sample Run:

Enter an int: 11 Enter an int: 3 The minimum of 11 and 0 is 0 The minimum of 11 and 3 is 3 

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!