College

1. Invoke a method to turn the air conditioner on using the reference variable `my_ac`.

```python
my_ac.turn_on()
```

2. Invoke a method to turn the air conditioner off using the reference variable `my_ac`.

```python
my_ac.turn_off()
```

3. Invoke a method telling the object to set the air conditioner to 72 degrees using the reference variable `my_ac`.

```python
my_ac.set_temp(72)
```

4. Invoke a method using the reference variable to return the previously set temperature of the air conditioner and store the returned value in `current_temp`.

```python
current_temp = my_ac.get_temp()
```

5. Invoke a method of this object using the reference variable to ask whether the air conditioner is on or off and store the result in `status`.

```python
status = my_ac.is_on()
```

Answer :

To turn on the air conditioner, you can invoke the `turn_on` method on the `my_ac` object. This method does not accept any arguments and does not return any value. By calling `my_ac.turn_on()`, you will activate the air conditioner.

To turn off the air conditioner, you can invoke the `turn_off` method on the `my_ac` object. Similar to the `turn_on` method, `turn_off` also does not require any arguments and does not return any value. Calling `my_ac.turn_off()` will deactivate the air conditioner. If you want to set the air conditioner to a specific temperature, you can use the `set_temp` method. This method accepts an integer argument representing the desired temperature. For example, to set the air conditioner to 72 degrees, you would call `my_ac.set_temp(72)`. Note that `set_temp` does not return any value.

In order to retrieve the previously set temperature of the air conditioner, you can use the `get_temp` method. This method does not accept any arguments and returns an integer value representing the temperature. To store the returned value in the `current_temp` variable, you can assign it as follows: `current_temp = my_ac.get_temp()`. Finally, if you want to check whether the air conditioner is on or off, you can use the `is_on` method. This method does not require any arguments and returns a boolean value (`True` or `False`) indicating the status of the air conditioner. To store the result in the `status` variable, you can use the following code: `status = my_ac.is_on()`.

To know more about air conditioner visit:

https://brainly.com/question/33319046

#SPJ11