avatar Bite 372. Validate Pangram

A pangram, according to the Oxford English Dictionary, is a sentence or verse that contains all of the letters of the alphabet.

Given a string containing only English letters, write a function that returns True if sentence is a pangram or False otherwise.

Make sure to remove any whitespace and lowercase the string.

Example:

>>> from  pangram import validate_pangram
>>> sentence = "The quick brown fox jumps over a lazy dog"
>>> validate_pangram(sentence)
True

Example 2:

>>> from  pangram import validate_pangram
>>> sentence = "PYBITES IS A COMMUNITY OF PYTHON CODERS"
>>> validate_pangram(sentence)
False

Keep calm and code in Python!

Login and get coding
go back Beginner level
Bitecoin 2X

30 out of 32 users completed this Bite.
Will you be Pythonista #31 to crack this Bite?
Resolution time: ~26 min. (avg. submissions of 5-240 min.)
Pythonistas rate this Bite 3.0 on a 1-10 difficulty scale.
» You can do it! 😌

Focus on this Bite hiding sidebars, turn on Focus Mode.

Ask for Help