A pangram (Greek: παν γράμμα, pan gramma, "every letter") or holoalphabetic sentence for a given alphabet is a sentence using every letter of the alphabet at least once. Perhaps you are familiar with the well known pangram "The quick brown fox jumps over the lazy dog".
For this mission, we will use the latin alphabet (A-Z). You are given a text with latin letters and punctuation symbols. You need to check if the sentence is a pangram or not. Case does not matter.
Input: A text as a string (str).
Output: Whether the sentence is a pangram or not as logic value (bool).
assert check_pangram("The quick brown fox jumps over the lazy dog.") == True assert check_pangram("ABCDEF") == False assert check_pangram("abcdefghijklmnopqrstuvwxyz") == True assert check_pangram("ABCDEFGHIJKLMNOPQRSTUVWXYZ") == True
How it is used: Pangrams have been used to display typefaces, test equipment, and develop skills in handwriting, calligraphy, and keyboarding for ages.
- all(ch in (string.punctuation + string.ascii_letters + " ") for ch in text);
- 0 < len(text).
CheckiO Extensions allow you to use local files to solve missions. More info in a blog post.
In order to install CheckiO client you'll need installed Python (version at least 3.8)
Install CheckiO Client first:
pip3 install checkio_client
Configure your tool
checkio --domain=py config --key=
Sync solutions into your local folder
(in beta testing) Launch local server so your browser can use it and sync solution between local file end extension on the fly. (doesn't work for safari)
checkio serv -d
Alternatevly, you can install Chrome extension or FF addon
checkio install-plugin --ff
checkio install-plugin --chromium