Fix typo "panagram" -> "pangram" (#1836)

This commit is contained in:
Joaquin Cabezas 2020-04-07 14:08:11 +02:00 committed by GitHub
parent e5f7fbcc9e
commit c1a57e0353
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,16 +1,16 @@
# Created by sarathkaul on 12/11/19 # Created by sarathkaul on 12/11/19
def check_panagram( def check_pangram(
input_str: str = "The quick brown fox jumps over the lazy dog", input_str: str = "The quick brown fox jumps over the lazy dog",
) -> bool: ) -> bool:
""" """
A Panagram String contains all the alphabets at least once. A Pangram String contains all the alphabets at least once.
>>> check_panagram("The quick brown fox jumps over the lazy dog") >>> check_pangram("The quick brown fox jumps over the lazy dog")
True True
>>> check_panagram("My name is Unknown") >>> check_pangram("My name is Unknown")
False False
>>> check_panagram("The quick brown fox jumps over the la_y dog") >>> check_pangram("The quick brown fox jumps over the la_y dog")
False False
""" """
frequency = set() frequency = set()
@ -26,5 +26,5 @@ def check_panagram(
if __name__ == "main": if __name__ == "main":
check_str = "INPUT STRING" check_str = "INPUT STRING"
status = check_panagram(check_str) status = check_pangram(check_str)
print(f"{check_str} is {'not ' if status else ''}a panagram string") print(f"{check_str} is {'not ' if status else ''}a pangram string")