Quiz Catalog

Catalog of quizzes

class Moon:
  r = 1737.10

  def __ge__(self, other):
      print('moon ge')
      return self.r >= other

my_moon = Moon()

is_ge = (my_moon => 6371.0) 
SyntaxError: invalid syntax
  • class/method/ge