Write a python function isogram(S) that returns True if and only if no character appears more than once in the input string S.
def isogram(str):
# Convert to lower case.
word = str.lower()
list = []
for ltr in word:
# check If letter is an alphabet
if ltr.isalpha():
if ltr in list:
return False
list.append(ltr)
return True
str=input("Enter String: ")
print(isogram(str))
Get Answers For Free
Most questions answered within 1 hours.