Answered step by step
Verified Expert Solution
Question
1 Approved Answer
For the code I inputted: if value1 == value2: print(The values are equal.) elif value1 > value2: print(value1, is the maximum value.) else: print(value2, is
For the code I inputted:
if value1 == value2: print("The values are equal.") elif value1 > value2: print(value1, "is the maximum value.") else: print(value2, "is the maximum value.")
but its not coming out correctly...
Given two integer values as input, write a Python program to determine the maximum of these values. Your program must use the following output messages: o For values that are equal: The values are equal. For values that are different: Value1 is the maximum value. Examples: Given the values 10 and 10, the expected output is: Enter the first value: 10 Enter the second value: 18 The values are equal Given the values 10 and 20, the expected output is: 20 is the maximum value. You must use conditionals (if statement) when writing your solution. For example: Input Result 10 le Enter the first value: le Enter the second value: 10 The values are equal Answer: (penalty regime: 0 %) Reset answer 1 value1 = int (input("Enter the first value: ")) value2 = int (input("Enter the second value: ")) 2 3 4 write your solution hereStep 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