0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
Concatenating two lists (smushing them together) is easy in Python, just use the +
operator.
total = [1, 2, 3] + [4, 5, 6]
print(total)
# Prints: [1, 2, 3, 4, 5, 6]
Fantasy Quest allows users to keep lists of their favorite items. Your job is to finish the concatenate_favorites
function. It takes three different lists - the player's favorite_weapons
, favorite_armor
and favorite_items
.
Focus Editor
Alt+Shift+]
Next Tab
Alt+Shift+[
Become a member to Submit
Become a member to Run
Become a member to view solution