An IsLowercase() solution

Here’s an option I’ve done for IsLowercase().
IsLowercase

Some thoughts on my code include:

  1. I feel I should have an ‘else’ statement but feel it would just do the same as leaving the for loop and it would be extra unneccessary code.
  2. This method will consider \0 and spaces as not lowercase. Is this the result we’re after or should it let them through. It wasn’t specified.
  3. Have I condensed the for and if statements correctly?

Thanks for your input.

Privacy & Terms