+ 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
13 Antworten
+ 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
+ 3
@Lim Han Yang ,
would you like to check this?
https://code.sololearn.com/cr1mvHUTO2Bq/?ref=app
+ 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.
+ 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.
+ 2
Ipang I am might not be allow use import
+ 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?
+ 2
I think this is for you
https://code.sololearn.com/cBlvsEOCDe79/?ref=app
+ 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.
+ 1
Lim Han
Share your code link I wanna see it ...
+ 1
Isn't that code working as you expected? what is the problem?
+ 1
Lothar thanks so much for the help! Work like a charm really appreciate it!
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."?
- 1
Uses `set` and comprehension
https://code.sololearn.com/c1udQg3uuV3g/?ref=app