QuestionQ70Verified/Object-Oriented ProgrammingCopy linkReport a problemAsk AstroTutorSave questionAssuming the following code has executed successfully, which expressions evaluate to True? Choose twoA'var' in Class.dictB'data' in Object.__dictClen(Class.dict) == 1D'data' in Class.dictShow AnswerAnswerExplanationChained assignment in a class body creates both var and data as attributes of Class, so 'var' in Class.__dict__ and 'data' in Class.__dict__ are true. A class dictionary also includes automatically supplied entries such as __module__, __dict__, and __doc__, and Object.__dict is not the special __dict__ attribute name.Show comments0Show commentsCommunity DiscussionNo comments yet. Be the first to start the discussion!
Community Discussion