← Back to challenges

Is the Word an Isogram?

PythonHardstringsvalidationloops

Instructions

An isogram is a word that has no duplicate letters. Create a function that takes a string and returns either True or False depending on whether or not it's an "isogram".

Examples

is_isogram("Algorism") ➞ True

is_isogram("PasSword") ➞ False
# Not case sensitive.

is_isogram("Consecutive") ➞ False

Notes

  • Ignore letter case (should not be case sensitive).
  • All test cases contain valid one word strings.
python3
Loading editor…
to run
Walks through the solution with reasoning and edge cases.
Next: Is the String in Order?