0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 5
click for more info
No active XP Potion
Accept a Quest
Login to submit answers
Remember, you can use the ==
operator to check if two values are equal. For example:
is_equal = 5 == 5
# is_equal is True
Complete the check_swords_for_army
function. If the number of swords and the number of soldiers match, return the string:
correct amount
Otherwise, return the string:
incorrect amount
Punctuation matters! Make sure you return the strings exactly as they appear above.
You only need to use one if
statement and two return
statements to complete the function.
Focus Editor
Alt+Shift+]
Next Tab
Alt+Shift+[
Become a member to Submit
Become a member to Run
Become a member to view solution