You have made a mistake that is very frequent among novice programmers, you check for the returned bool using ==.
You should instead use something like:
// do things...
The reason your code produces no output, is the fact that islower() doesn't return a bool, but an int. Behind the scenes, true == 1 and false == 0, but ...