0
How to input a string of random letters?
7 Réponses
+ 2
Thabang *LaMuNu* Mokoena
word = 'lamunu'
repeat = "No"
for i in word:
if word.count(i) > 1:
repeat = "Yes"
else:
repeat = "No"
print(repeat)
+ 1
Explain more to help u
+ 1
You're welcomeThabang *LaMuNu* Mokoena
+ 1
If a word has uppercase letters, u can convert the string to all lowercase by word.lower() because u and U are different.
0
I want to check if a word 'lamunu' has repeating letters on it.
0
Thanks 👍🏽 Mûhãmmëd😎😎😎