0
I need an urgent help in this please(in python)..... I've tried all i know but it still not running.
write a programming that checks if a word supplied is an Isogram. an Isogram is a word which no letter occurs twice. Create a method is_sogram that takes one argument, a word to test if it's an Isogram. This method should return a tuple of the word and a Boolean indicating whether it's an Isogram. If the argument supplied is an empty string, return the argument and False: (argument, False). If the argument supplied is not a string, raise TypeError with message 'Argument should be a string'.
3 Answers
+ 8
i am having a deja vu all of the sudden xD
https://code.sololearn.com/con8478U11fg/?ref=app
https://www.sololearn.com/discuss/261062/?ref=app
0
def is_isogram(convert):
is_isogram = "convert"
return (True, is_isogram)
if is_isogram(""):
return (is_isogram, False)
if is_isogram != "":
raise TypeError ("Argument should be a string")
else:
print is_isogram()
0
the expected output is ("convert", True)