| def generate_packing_list(duration, preferences, transportation): | |
| 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"] | |
| if duration > 3: | |
| basic_items.extend(["Extra socks", "Biodegradable wet wipes", "Portable battery pack"]) | |
| if "art" in preferences: | |
| basic_items.extend(["Art supplies", "LED lights for nighttime visibility"]) | |
| if "music" in preferences: | |
| basic_items.extend(["Earplugs", "Musical instruments (if applicable)"]) | |
| if transportation == "car": | |
| basic_items.extend(["Extra gasoline", "Car repair kit"]) | |
| elif transportation == "rv": | |
| basic_items.extend(["RV sewage and water servicing equipment", "Generator"]) | |
| return basic_items | |