Using Dynamic Objects in Python (Adding Attributes Dynamically Without Declaring a Class)

There is a way to dynamically add attributes without declaring an object in Python. A representative method is using `types.SimpleNamespace`. However, if you want to use the basic `object`, you need to declare a class. Here is a summary of how to use `types.SimpleNamespace` and how to use the basic `object`.

### Method 1: Using `types.SimpleNamespace`

Using `types.SimpleNamespace`, you can dynamically add attributes to an object without declaring a class: