Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defining A Class #170

Open
ironstrider opened this issue Sep 8, 2015 · 0 comments
Open

Defining A Class #170

ironstrider opened this issue Sep 8, 2015 · 0 comments
Assignees

Comments

@ironstrider
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants