0
Why my isogram code is not accepted by the challenge??
4 Antworten
+ 6
Read the task requirement again, we're supposed to take a string input; before checking whether it was an isogram. Your code isn't reading an input nor does it use the function to decide what output to print on screen.
Mind the output letter case, must match the requirement ...
+ 4
You need to _call_ the function after defining it.
+ 3
What is the challenge?
0
Here's my solution:
Isogram_detect = input("")
A_count = Isogram_detect.count("a")
B_count = Isogram_detect.count("b")
C_count = Isogram_detect.count("c")
if A_count or B_count or C_count > 1:
print("false")
else:
print("true")