Answer to Question #292642 in Python for ystr

Question #292642

Are Integers Created Equally?

by CodeChum Admin

It's time to find out if something is true or false. Let's test your capabilities by creating a program that checks if two integers are equal!


Instructions:

  1. Input two integers in one line.
  2. Print the two integers in one line, separate them with a space.
  3. Print a string message on a new line, "Equal" if both integers are equal.

Input

A line containing two integers separated by a space.

5·5

Output

The first line contains the two integers input.

The second line contains a string which is the result.

5·5
Equal
1
Expert's answer
2022-02-01T10:01:26-0500
str1 = input()
str2 = input()
print(str1+" "+str2)
if str1 == str2:
    print("Equal")
else:
    print("Not Equal")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS