{"id":8141,"date":"2021-06-07T18:23:17","date_gmt":"2021-06-07T12:53:17","guid":{"rendered":"https:\/\/python-programs.com\/?p=8141"},"modified":"2021-11-22T18:38:37","modified_gmt":"2021-11-22T13:08:37","slug":"python-program-to-check-if-a-string-is-a-pangram-or-not","status":"publish","type":"post","link":"https:\/\/python-programs.com\/python-program-to-check-if-a-string-is-a-pangram-or-not\/","title":{"rendered":"Python Program to Check if a String is a Pangram or Not"},"content":{"rendered":"

Strings in Python:<\/strong><\/p>\n

A Python string is an ordered collection of characters used to express and store text-based data. Strings are saved in an adjacent memory area as individual characters. It is accessible in both directions: forward and backward. Characters are merely symbols. Strings are immutable Data Types in Python, which means they cannot be modified once they are formed.<\/p>\n

Pangram:<\/strong><\/p>\n

If a sentence or string contains all 26 letters of the English alphabet at least once, it is considered to be a pangram.<\/p>\n

Examples:<\/strong><\/p>\n

Example1:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

given string =\"Helloabcdfegjilknmporqstvuxwzy\"<\/pre>\n

Output:<\/strong><\/p>\n

The given string helloabcdfegjilknmporqstvuxwzy is a pangram<\/pre>\n

Example2:<\/strong><\/p>\n

Input:<\/strong><\/p>\n

given string =\"hellothisisbtechgeeks\"<\/pre>\n

Output:
\n<\/strong><\/p>\n

The given string hellothisisbtechgeeks is not a pangram<\/pre>\n

Python Program to Check if a String is a Pangram or Not<\/h2>\n

There are several ways to check if the given string is pangram or not some of them are:<\/p>\n