← Back to challenges

Are the Numbers Equal?

PythonMediumconditionslogiclanguage_fundamentals

Instructions

Create a function that takes two integers and checks if they are equal.

Examples

is_equal(5, 6) ➞ False

is_equal(1, 1) ➞ True

is_equal("1", 1) ➞ False

Notes

If there is a string then it should return False.

python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Scoring System