You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I love the book. It has really been amazing. Especially the example questions.
There was just one that was very unclear to me.
"Exercise 17.1. Download the code from this chapter from http: // thinkpython2. com/ code/
Time2. py . Change the attributes of Time to be a single integer representing seconds since midnight.
Then modify the methods (and the function int_to_time) to work with the new implementation.
You should not have to modify the test code in main. When you are done, the output should
be the same as before. Solution: http: // thinkpython2. com/ code/ Time2_ soln. py ."
If I can't modify the code in main() then how am I supposed to change the attributes of the Time class?
In main() it declares Time objects like "start = Time(9, 45, 00)"
If I change the attributes of time, then doesn't that mean that object class declaration will only include one number?
The text was updated successfully, but these errors were encountered:
I love the book. It has really been amazing. Especially the example questions.
There was just one that was very unclear to me.
"Exercise 17.1. Download the code from this chapter from http: // thinkpython2. com/ code/
Time2. py . Change the attributes of Time to be a single integer representing seconds since midnight.
Then modify the methods (and the function int_to_time) to work with the new implementation.
You should not have to modify the test code in main. When you are done, the output should
be the same as before. Solution: http: // thinkpython2. com/ code/ Time2_ soln. py ."
If I can't modify the code in main() then how am I supposed to change the attributes of the Time class?
In main() it declares Time objects like "start = Time(9, 45, 00)"
If I change the attributes of time, then doesn't that mean that object class declaration will only include one number?
The text was updated successfully, but these errors were encountered: