Skip to content

Conversation

@dfugelso
Copy link
Contributor

@dfugelso dfugelso commented Dec 7, 2014

Homework for the last three sessions (7,8,9)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You need to be consistent here. In one case you are returning a new object, and in the other you are returning the original object changed. You should almost certainly be returning a new object. If you want a function that returns the same object changed, you would use the augmented assignment (iadd, for example). You are correct that the reflected operator (rmul, below) would return the same thing as the normal operator (here and in most cases), and is often just a call to its non-reflected equivalent.

@codedragon
Copy link
Contributor

Made some comments on homework. Will send an email about project, since we have an updated version.

codedragon added a commit that referenced this pull request Dec 13, 2014
Sessions 7, 8, 9 Homework
@codedragon codedragon merged commit 7cc9bf8 into UWPCE-PythonCert:master Dec 13, 2014
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

Successfully merging this pull request may close these issues.

2 participants