def log(self):
    print('some library function requires all objects to have a log method')
print("unfortunately we're using the Student class, which doesn't have one")
область видимости переменной python