← Back to challenges

Compare Strings by Count of Characters

PythonMediumstringsconditionsvalidation

Instructions

Create a function that takes two strings as arguments and return either True or False depending on whether the total number of characters in the first string is equal to the total number of characters in the second string.

Examples

comp("AB", "CD") ➞ True

comp("ABC", "DE") ➞ False

comp("hello", "innokodakademija") ➞ False
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.