Question: Help me with my python!!! I will be appreciate it :) 9) Enter and execute the following code: def main(): doAgain = True while doAgain:

 Help me with my python!!! I will be appreciate it :)

Help me with my python!!! I will be appreciate it :)

9) Enter and execute the following code: def main(): doAgain = True while doAgain: num1 = int(input("Enter first number: ")) num2 = int(input ("Enter second number: ")) num3 = int(input ("Enter third number: ")) num4 = int(input ("Enter fourth number: ")) maxNum1 = max (numi, num2, num3, num 4) print("The largest of the four numbers is: " maxNumi) another = input ("Type 'y' to find another max number" or any other key to quit") if another != "y": doAgain = False print("Done!") main() a. What type of variable is 'do Again'? b. What does the program do? c. What does the following line of code do? maxNum1 = max (num1, num2, num3, num 4) d. Experiment with the arguments in the max() function in the program to determine if the function must have four arguments. Demonstrate your answer. e. What does the following code in the program do? if another != 'y': do Again = False

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!