Skip to content

Confusing explanation in Part 2 - The shortest person in the room #15

@cmolu

Description

@cmolu

There is a confusing information in the part 2 of the exercise called "The shortest person in the room".

The issue is regarding the output we should get when introducing the testing code in the exercise. The example output says it should print a string with the name of the shortest person (In this example Nina) which leads to conclusion that the method should return person.name attribute, but when doing so TMC shows an error and says the shortest() method should return a Person type data which it can never print just the name attribute unless specified as print(person.name)

The output of testing the part 2 of the exercise shouldn't be "Shortest: Nina", it should actually be "Shortest: Nina (162 cm)"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions