We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

If Practice

Remember, you can use the == operator to check if two values are equal. For example:

is_equal = 5 == 5
# is_equal is True

Assignment

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.

Tips

  1. You only need to use one if statement and two return statements to complete the function.
  2. Proper indentation is essential for writing Python.