String contains all letters alphabet or not.

In this program, we will take a string as input and string contains all letters alphabet or not

Steps to solve the program
  1. Take a string as input.
  2. Import string library and create a set of all alphabets using string library.
  3. Check whether a string contains all letters of the alphabet or not.
  4. Print True if yes else False.
				
					#Importing string
import string
alphabet = set(string.ascii_lowercase)

#Input string
string = "abcdgjksoug"

#Printing output
print(set(string.lower()) >= alphabet)
				
			

Output :

				
					False
				
			

strip spaces from a string.

convert a string into a list of words.

Leave a Comment