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'.

8th Apr 2017, 12:12 PM
Obongekeme Udo
Obongekeme Udo - avatar
3 Answers
8th Apr 2017, 12:14 PM
Burey
Burey - avatar
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()
8th Apr 2017, 12:20 PM
Obongekeme Udo
Obongekeme Udo - avatar
0
the expected output is ("convert", True)
8th Apr 2017, 12:21 PM
Obongekeme Udo
Obongekeme Udo - avatar