-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDama
29 lines (22 loc) · 931 Bytes
/
Dama
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Tempreture 118
def calculate_average_temperature(room1_temperature, room2_temperature):
"""
Calculate the average temperature between two rooms.
Parameters:
- room1_temperature: Temperature of the first room.
- room2_temperature: Temperature of the second room.
Returns:
- average_temperature: Average temperature between the two rooms.
"""
# Calculate the average temperature
average_temperature = (room1_temperature + room2_temperature) / 2
return average_temperature
# Example usage:
if __name__ == "__main__":
# Example temperatures for two rooms (replace with actual temperatures)
room1_temperature = 22.5
room2_temperature = 18.3
# Calculate the average temperature
average_temperature = calculate_average_temperature(room1_temperature, room2_temperature)
# Print the result
print(f"Average Temperature: {average_temperature} degrees Celsius")