Answered step by step
Verified Expert Solution
Link Copied!

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:

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions