Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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 :)
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 = FalseStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started