0

Why my isogram code is not accepted by the challenge??

https://code.sololearn.com/cH32SIIWZB8S/?ref=app

23rd Mar 2023, 9:11 PM
Abderrahman Kharroubi
Abderrahman Kharroubi - avatar
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 ...
23rd Mar 2023, 9:23 PM
Ipang
+ 4
You need to _call_ the function after defining it.
23rd Mar 2023, 9:23 PM
Lisa
Lisa - avatar
+ 3
What is the challenge?
23rd Mar 2023, 9:17 PM
Ausgrindtube
Ausgrindtube - avatar
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")
17th Aug 2024, 4:31 PM
SatyaPrakash Mishra
SatyaPrakash Mishra - avatar