Data types · 23 / 29 Exercise Easy

Comparison table

Objective

Create a Python program that compares two integers with all the comparison operators.

Instructions

  • Read two integers, a and b.
  • Show, each on its own line and in this order, the result of: a == b, a != b, a < b, a > b, a <= b and a >= b.
Input
3
5
Output
False
True
True
False
True
False

Open the editor in full screen: the statement on the left and your code, the output and the tests on the right.

Start exercise