Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

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 here

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_2

Step: 3

blur-text-image_3

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

Concepts of Database Management

Authors: Philip J. Pratt, Mary Z. Last

8th edition

1285427106, 978-1285427102

More Books

Students also viewed these Databases questions