Same ASCII?

Published by CppPythonDude in

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("EdAbIt", "EDABIT") ➞ False

Notes

If you need some help with ASCII codes, check the Resources tab for an image of all ASCII codes used in this challenge.

Watch a quick demo on how Edabit works.