Skip to content

Defining A Class #170

@ironstrider

Description

@ironstrider

With the following test, students are often prompted with "Make sure your code works for similar inputs":
str(Rectangle((0, 0), 1, 1)) -> '((0, 0), (1, 1))'

Student's inadvertently output (top left coords), (width, height), not realizing that they should output (top left coords, bottom right coords), because in the special case where top left coords = (0, 0), these two are exactly the same.

We should make this clearer for students by changing the example to one with non-zero top left coordinates and width != height.

Metadata

Metadata

Assignees

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