7 lines
227 B
Python
7 lines
227 B
Python
def is_isogram(string):
|
|
# use string method count() when letter.isalpha() == True
|
|
for letter in string.lower():
|
|
if letter.isalpha() and string.lower().count(letter) > 1:
|
|
return False
|
|
return True
|