← Back to challenges

Messing with Equality

PythonHardgameslogiclanguage_fundamentalsvalidation

Instructions

Create a function whose return value always passes equality checks.

Examples

equals() == 0 ➞ True

equals() == [] ➞ True

equals() == (lambda: 1) ➞ True

Notes

The challenge is passable.

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