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 think it would be good to write up what belongs in a format method vs. a print method. Mostly conveying that, when in doubt, put the smarts in the format method and do as little as possible in print.
Possible secondary question: should you implement a str() method? What's the difference between format/print and str?
The text was updated successfully, but these errors were encountered:
I think it would be good to write up what belongs in a format method vs. a print method. Mostly conveying that, when in doubt, put the smarts in the format method and do as little as possible in print.
Possible secondary question: should you implement a
str()
method? What's the difference between format/print and str?The text was updated successfully, but these errors were encountered: