Add a variable to a class instance at runtime: Difference between revisions
Content added Content deleted
mNo edit summary |
|||
Line 620: | Line 620: | ||
person = Contact("Jane Doe", Dict()) |
person = Contact("Jane Doe", Dict()) |
||
person.phonenumber[home] = "212 555-1234" |
person.phonenumber["home"] = "212 555-1234" |
||
</lang> |
</lang> |
||