Check whether the character is lowercase or not.

In this python if else program, we will check whether the given character is lowercase or not.

Steps to solve the program
  1. Take a character as input through the user.
  2. Check whether a given character is uppercase or not using islower().
  3. Use an if-else statement for this purpose.
  4. Print the output.
				
					char = input("Enter a character: ")

if char.islower():
    print("True")
else:
    print("False")
				
			

Output :

				
					Enter a character: c
True
				
			

Related Articles

check whether a given character is uppercase or not.

check whether the given number is an integer or not.

Leave a Comment