class Klass:
    number = 17


if __name__ == '__main__':

    k = Klass()

    # print(k.number)
    print(getattr(k, 'number', None))

    # print(Klass.text)
    print(getattr(k, 'text', None))

99a7cff442201cb6d405d1d5bf12442a9a5562a1
<mask token>

class Klass:
    <mask token>


<mask token>

class Klass:
    number = 17


<mask token>

class Klass:
    number = 17


if __name__ == '__main__':
    k = Klass()
    print(getattr(k, 'number', None))
    print(getattr(k, 'text', None))

class Klass:
    number = 17


if __name__ == '__main__':

    k = Klass()

    # print(k.number)
    print(getattr(k, 'number', None))

    # print(Klass.text)
    print(getattr(k, 'text', None))
