Python: create a Class which attributes are objects from another classes possible? : <p>Is it possible to create a class with some of its attributes = object of other classes?</p>

<p>class SENSORS:</p>

<pre><code>def __init__(self):
    # The attributes of the class that will be available for external use
    self.temperature = None
    self.humidity = None
    self.distance = None
    self.light = None
    self.sound = None
    self.url = None
    self.base_url = "http://..."

    # Instantiating sensor objects
    self.SOUND = NEW OBJECT FROM CLASS SOUND
    self.LIGHT = NEW OBJECT FROM CLASS LIGHT
    self.DISTANCE = NEW OBJECT FROM CLASS DISTANCE
    self.TEMP = NEW OBJECT FROM CLASS TEMPERATURE
</code></pre>
