← Back to challenges

Same ASCII?

PythonHardstringsvalidation

Instructions

Return True if the sum of ASCII values of the first string is same as the sum of ASCII values of the second string, otherwise return False.

Examples

same_ascii("a", "a") ➞ True

same_ascii("AA", "B@") ➞ True

same_ascii("Innokodakademija", "INNOKODAKADEMIJA") ➞ False
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Prefixes vs. Suffixes