I assume it's not "best practice" to leave the "else" out of this? Since "return" ends the function immediately, the bottom case will only run if the "if" statement is false, barring the need for the "else". But I guess it's best practice for readability purposes.
ty @chrono79 i was wondering exactly the same thing as brazenAI
Wouldn't .casefold() be better used to check for both lower and upper?
no need to use else, just return.
whats with an empty string?
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
i didn't think about that
If I put spaces before the name your solution goes to shit :)
i too
i use upper :)
I assume it's not "best practice" to leave the "else" out of this? Since "return" ends the function immediately, the bottom case will only run if the "if" statement is false, barring the need for the "else". But I guess it's best practice for readability purposes.
Thanks for answering @Chrono79
Where is this code testing 'R' in the name?
Could you please explain?
it works either way
Loading more items...