Add a variable to a class instance at runtime: Difference between revisions

Content added Content deleted
mNo edit summary
Line 620:
 
person = Contact("Jane Doe", Dict())
person.phonenumber["home"] = "212 555-1234"
</lang>