Character type - doubt

i done this question like this

but can you explain this …

. I dare you - “Try to not use ascii codes.” :wink:

thank you

it is also possible to solve this question using the ascii values of the characters, like we know the ascii value of A is 65 and ascii value of Z is 90, so if given character’s ascii value if between 65 and 90 it must be upper case character. Since you are not using ascii codes your code is correct!