0

How to input a string of random letters?

19th Mar 2020, 5:46 AM
Thabang *LaMuNu* Mokoena
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)
19th Mar 2020, 6:10 AM
maf
maf - avatar
+ 1
Explain more to help u
19th Mar 2020, 5:48 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 1
19th Mar 2020, 6:00 AM
Muhammad Galhoum
Muhammad Galhoum - avatar
+ 1
If a word has uppercase letters, u can convert the string to all lowercase by word.lower() because u and U are different.
19th Mar 2020, 6:12 AM
maf
maf - avatar
0
I want to check if a word 'lamunu' has repeating letters on it.
19th Mar 2020, 5:55 AM
Thabang *LaMuNu* Mokoena
0
Thanks 👍🏽 Mûhãmmëd😎😎😎
19th Mar 2020, 5:59 AM
Thabang *LaMuNu* Mokoena