Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -17,7 +17,7 @@ def generate_health_conditions():
|
|
17 |
{"condition": "🔬 Hyperlipidemia", "emoji": "🔬", "spending": {"Minnesota": 20, "Florida": 50, "California": 70, "New York": 30, "Texas": 60}, "treatment": "Lifestyle changes and medication", "savings": "$700"},
|
18 |
{"condition": "🦴 Back problems", "emoji": "🧍", "spending": {"Minnesota": 10, "Florida": 40,
|
19 |
|
20 |
-
|
21 |
total_spending = 0
|
22 |
for condition in health_conditions:
|
23 |
for state, spending in condition["spending"].items():
|
|
|
17 |
{"condition": "🔬 Hyperlipidemia", "emoji": "🔬", "spending": {"Minnesota": 20, "Florida": 50, "California": 70, "New York": 30, "Texas": 60}, "treatment": "Lifestyle changes and medication", "savings": "$700"},
|
18 |
{"condition": "🦴 Back problems", "emoji": "🧍", "spending": {"Minnesota": 10, "Florida": 40,
|
19 |
|
20 |
+
def calculate_total_spending(health_conditions):
|
21 |
total_spending = 0
|
22 |
for condition in health_conditions:
|
23 |
for state, spending in condition["spending"].items():
|