utils/packing.py
Browse files- utils/packing.py +18 -0
utils/packing.py
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
def generate_packing_list(duration, preferences, transportation):
|
| 2 |
+
basic_items = ["Water (1.5 gallons per person per day)", "Food", "Shelter (tent or RV)", "Warm clothing", "Cool clothing", "Dust mask or bandana", "Goggles", "Sunscreen", "Hat", "Comfortable shoes", "First aid kit"]
|
| 3 |
+
|
| 4 |
+
if duration > 3:
|
| 5 |
+
basic_items.extend(["Extra socks", "Biodegradable wet wipes", "Portable battery pack"])
|
| 6 |
+
|
| 7 |
+
if "art" in preferences:
|
| 8 |
+
basic_items.extend(["Art supplies", "LED lights for nighttime visibility"])
|
| 9 |
+
|
| 10 |
+
if "music" in preferences:
|
| 11 |
+
basic_items.extend(["Earplugs", "Musical instruments (if applicable)"])
|
| 12 |
+
|
| 13 |
+
if transportation == "car":
|
| 14 |
+
basic_items.extend(["Extra gasoline", "Car repair kit"])
|
| 15 |
+
elif transportation == "rv":
|
| 16 |
+
basic_items.extend(["RV sewage and water servicing equipment", "Generator"])
|
| 17 |
+
|
| 18 |
+
return basic_items
|