10
Shmebula
2 6 18
484/ 545
Last seen 1 year ago
Member for 7 years, 5 months
Difficulty Normal
Best reviews / Newest reviews
Check it !!!!!! Not bad, I think))-Sergey_Kolomoets 1 1
Thanks for the highlight of divmod. There are so many built-in functions I never paid attention to and end up recreating all the time. :) More
Secret Message-KhrystynaHranishak
FYI string.ascii_uppercase gives you all of the uppercase letters. Also the .isupper() function on a string or character (single length string) will tell you if the string is uppercase or not. :) Line 8 could read: if text[i].isupper() or if text[i] in string.ascii_uppercase Also, strings are it More
return largest substring that's the same backwards-cougarmilk
I considered using list comprehensions in my solution, but wasn't sure how it would read. Nice solution. More
First-Luffy_L_monkey
Shortest version I figured out. More
First-Alexey22
Tip: Since your if_pali() method simply checks for data == data[::-1], you can replace the call to the method with that simple check. E.g. replace if if_pali(text[i:i+j]): with if text[i:i+j] == text[i:i+j][::-1]: More
Slicing-Nikolay__Pasko
Nice job. I tried to break your solution, but it's legit and much faster than mine. More
maketrans-autodidact_ks 1
FYI: str.upper() will convert the characters to all upper case, allowing you to only define upper case chars in your VOWELS and CONSONANTS variables. I didn't realize punctuation was in the string module. That's useful. More
Double loop-bryukh
This is the solution I came up with and here I was feeling lazy and dumb for something so trivial. :p More