NEED HELP!

I would like to create a class for finding the voltages of 1, 2 or even 4 batteries. The Class can be called BatteryVoltage with a default voltage value of 1.5 (AA Battery)
Must allow the user to find the total voltage of batteries when installed as a single,double, or quadruple set.
Must be able to set the voltage to calculate
Must input the kind of battery (String name)

To create a class for finding the voltages of batteries, you can follow these steps:

1. Declare the `BatteryVoltage` class and define a constructor to initialize the default voltage value, which is 1.5 (AA Battery). In the constructor, you can also set the name of the battery type as a default.

```python
class BatteryVoltage:
def __init__(self, voltage=1.5, battery_type="AA"):
self.voltage = voltage
self.battery_type = battery_type
```

2. Define a method called `get_total_voltage` that takes a parameter `num_batteries` to determine the number of batteries to consider in the calculation. In this method, you can multiply the voltage by the number of batteries specified.

```python
class BatteryVoltage:
def __init__(self, voltage=1.5, battery_type="AA"):
self.voltage = voltage
self.battery_type = battery_type

def get_total_voltage(self, num_batteries):
return self.voltage * num_batteries
```

3. Add a method called `set_voltage` that allows users to set a new voltage value for the battery. This method takes a parameter `new_voltage` and updates the voltage attribute accordingly.

```python
class BatteryVoltage:
def __init__(self, voltage=1.5, battery_type="AA"):
self.voltage = voltage
self.battery_type = battery_type

def get_total_voltage(self, num_batteries):
return self.voltage * num_batteries

def set_voltage(self, new_voltage):
self.voltage = new_voltage
```

4. Lastly, add a method called `set_battery_type` that allows users to set the battery type. This method takes a parameter `new_battery_type` and updates the battery type attribute accordingly.

```python
class BatteryVoltage:
def __init__(self, voltage=1.5, battery_type="AA"):
self.voltage = voltage
self.battery_type = battery_type

def get_total_voltage(self, num_batteries):
return self.voltage * num_batteries

def set_voltage(self, new_voltage):
self.voltage = new_voltage

def set_battery_type(self, new_battery_type):
self.battery_type = new_battery_type
```

Using this class, you can create an instance of the `BatteryVoltage` class and utilize the methods to find the total voltage, set a different voltage, and set a different battery type.