Quiz Catalog

Catalog of quizzes

class Test:
  r = 10

def __mod__(self, other):
  return self.r % other

test = Test()
test2 = (test % 3)
print(test2) 
1
  • class/method/mod