How to build an isogram checker in python | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to build an isogram checker in python

I am trying to build an isogram checker where each letter present is used the same number of times. I have viewed codes and discussion referencing this but they only check if the letters have only been used once. They don't check if the for the word maybe has letters which all appear twice like 'deed'. https://www.sololearn.com/Discuss/888892/?ref=app

19th Sep 2021, 12:21 PM
Lim Han Yang
Lim Han Yang - avatar
13 Answers
+ 2
I can explain the code, but lecturers haven't covered the part on imports yet, so I don't know if I can use. I managed to make it without import, thanks so much for the help :) https://code.sololearn.com/czMMdugC0HAx/?ref=app
19th Sep 2021, 1:55 PM
Lim Han Yang
Lim Han Yang - avatar
19th Sep 2021, 8:09 PM
Lothar
Lothar - avatar
+ 2
Why do not try to change it yourself. Please first save your attempt on SL Playground and link it here with a question when you have a concrete problem.
19th Sep 2021, 12:37 PM
JaScript
JaScript - avatar
+ 2
Ipang https://code.sololearn.com/c75D8ukmpIh2/?ref=app This is what I have now, I got to work by importing counter but I don't wanna use import. My lecturer might not allow that.
19th Sep 2021, 12:56 PM
Lim Han Yang
Lim Han Yang - avatar
+ 2
Ipang I am might not be allow use import
19th Sep 2021, 1:03 PM
Lim Han Yang
Lim Han Yang - avatar
+ 2
Even if you can explain your code to the lecturer? I understand if a student can't explain what they use, but shouldn't it be okay otherwise?
19th Sep 2021, 1:09 PM
Ipang
19th Sep 2021, 6:23 PM
Hamza Hussein
Hamza Hussein - avatar
+ 1
Ipang it doesn't check if the word has each letter appearing the same times other than once. So a word like 'peep' will where each letter appears the same number of time but instead twice the functions used above return false even though it is an isogram.
19th Sep 2021, 12:42 PM
Lim Han Yang
Lim Han Yang - avatar
+ 1
Lim Han Share your code link I wanna see it ...
19th Sep 2021, 12:47 PM
Ipang
+ 1
Isn't that code working as you expected? what is the problem?
19th Sep 2021, 1:01 PM
Ipang
+ 1
Lothar thanks so much for the help! Work like a charm really appreciate it!
22nd Sep 2021, 5:47 AM
Lim Han Yang
Lim Han Yang - avatar
0
And what was your doubt? Isn't it the requirement? to confirm when the string contains unique letters only? What was the problem with "check if the letter have only been used once."?
19th Sep 2021, 12:36 PM
Ipang
- 1
19th Sep 2021, 2:50 PM
Ipang