13 AnswersNew Answer
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
9/19/2021 12:21:47 PMLim Han Yang
13 AnswersNew Answer
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
@Lim Han Yang , would you like to check this? https://code.sololearn.com/cr1mvHUTO2Bq/?ref=app
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.
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.
Ipang I am might not be allow use import
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?
I think this is for you https://code.sololearn.com/cBlvsEOCDe79/?ref=app
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.
Lim Han Share your code link I wanna see it ...
Isn't that code working as you expected? what is the problem?
Lothar thanks so much for the help! Work like a charm really appreciate it!
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."?
Uses `set` and comprehension https://code.sololearn.com/c1udQg3uuV3g/?ref=app
Sololearn Inc.4 Embarcadero Center, Suite 1455
Send us a message