Python Modify Object Properties


Modify Object Properties

You can modify properties on objects like this:

Example

Set the age of p1 to 40:

p1.age = 40
Try it Yourself »


Copyright 1999-2023 by Refsnes Data. All Rights Reserved.