Skip to content

Using Classes problem #157

@pjritee

Description

@pjritee

If a student writes:

def print_friend_info(person):
    print(person._name)
    print(person._age)
    if self._friend is not None:
        print('Friends with', person._friend._name)

then there is an error "You need to print the person's name in print_friend_info"

The error should really be about not using the getters such as person.get_name()

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions