

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
Not enough gems
Cost: 6 gems
1: Comparison Operators
incomplete
2: Comparison Operator Evaluations
incomplete
3: Comparison Practice
incomplete
4: If Statements
incomplete
5: If Practice
incomplete
6: If-Else
incomplete
7: If-Else Practice
incomplete
8: If-Else Practice
incomplete
9: Boolean Logic
incomplete
10: Boolean Quiz
incomplete
11: Early Returns
incomplete
12: Mount Rental
incomplete
13: Combat Advantage
incomplete
Back
ctrl+,
Next
ctrl+.
This lesson's interactive features are locked, please to keep using them
Remember, you can use the == operator to check if two values are equal. For example:
is_equal = 5 == 5
# is_equal is TrueComplete the check_swords_for_army function. If the number of swords and the number of soldiers match, return the string:
correct amountOtherwise, return the string:
incorrect amountPunctuation 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.
Proper indentation is essential for writing Python.