Ad

defcalculate(self)
returnself.n> 0b10
import codewars_test as test
import random
test.describe("Random test cases")

Code
Diff
  • class IsMoreThanTwo:
        def __init__(self, n):
            self.n = n
    
        def calculate(self):
            return self.n > 0b10