# Activity 1 - List: Island Treasure Hunt
treasure_chest = []
for _ in range(4):
item = input("Enter a treasure you found: ")
treasure_chest.append(item)
for item in treasure_chest:
print(item)
# Activity 2 - List: Sailing Route Planner
destinations = []
while len(destinations) < 5:
place = input("Enter a destination to sail to: ")
destinations.append(place)
if len(destinations) == 5:
print("Second destination:", destinations[1])
print("Last destination:", destinations[-1])
else:
print("Error – you need exactly 5 destinations.")
# Activity 3 - List: Beach Snack Pack
def choose_snacks():
snacks = []
for _ in range(3):
snack = input("Enter a beach snack: ")
snacks.append(snack)
return snacks
snacks = choose_snacks()
for snack in snacks:
print(snack)
# Activity 4 - List: Island Games
sports = []
for _ in range(3):
sport = input("Enter a sport to play: ")
sports.append(sport)
for sport in sports:
print(f"I can’t wait to play {sport} on the island!")
# Activity 5 - List: Sunset Movie Night
movies = []
for _ in range(5):
movie = input("Enter a movie for the beach cinema: ")
movies.append(movie)
for i in range(len(movies)):
print(f"Movie {i} is {movies[i]}")
# Activity 6 - Dictionary: Island ID Card
explorer = {}
explorer["name"] = input("Enter your name: ")
explorer["age"] = input("Enter your age: ")
explorer["role"] = input("Enter your island role: ")
print(explorer)
# Activity 7 - Dictionary: Secret Island Info Access
key = input("What info do you want? (name, age, role): ")
print(explorer.get(key))
# Coding Challenge 1 - Supplies List
supplies = []
for _ in range(3):
item = input("Enter a supply item: ")
supplies.append(item)
for item in supplies:
print(item)
# Coding Challenge 2 - Destination Planning
destinations = []
while len(destinations) < 4:
dest = input("Enter a destination: ")
destinations.append(dest)
print(destinations)
# Coding Challenge 3 - Treasure Check
treasure = input("Enter a treasure name: ")
if treasure == "gold" or treasure == "jewel":
print("Rare treasure found!")
else:
print("Common treasure found!")
# Coding Challenge 4 - Explorer Profile (Dictionary)
explorer = {
"name": input("Enter your name: "),
"age": input("Enter your age: "),
"role": input("Enter your island role: ")
}
# Coding Challenge 5 - Quick Info Access
info = input("What info do you want? (name, age, role): ")
print(explorer.get(info))