[Tutor] Dicts and classes

Paul Sidorsky paulsid@shaw.ca
Tue, 12 Mar 2002 20:43:10 -0700


Sheila King wrote:


> So you don't have to write a function for changing each of these values.
> Just change it by an assignment statement.
> 
> As for printing...
> 
> You don't necessarily have to write a function to handle this. You can just
> print out the separate values, like this:

And here we see yet another great thing about Python, and its people. 
Try making the above suggestions in the C++ or Java communities and see
what happens!  :-)

-- 
======================================================================
Paul Sidorsky                                          Calgary, Canada
paulsid@shaw.ca                        http://members.shaw.ca/paulsid/