MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / is_pangram_fastest

Function is_pangram_fastest

strings/is_pangram.py:59–74  ·  view source on GitHub ↗

>>> is_pangram_fastest("The quick brown fox jumps over the lazy dog") True >>> is_pangram_fastest("Waltz, bad nymph, for quick jigs vex.") True >>> is_pangram_fastest("Jived fox nymph grabs quick waltz.") True >>> is_pangram_fastest("The quick brown fox jumps over the la

(
    input_str: str = "The quick brown fox jumps over the lazy dog",
)

Source from the content-addressed store, hash-verified

57
58
59def is_pangram_fastest(
60 input_str: str = "The quick brown fox jumps over the lazy dog",
61) -> bool:
62 """
63 >>> is_pangram_fastest("The quick brown fox jumps over the lazy dog")
64 True
65 >>> is_pangram_fastest("Waltz, bad nymph, for quick jigs vex.")
66 True
67 >>> is_pangram_fastest("Jived fox nymph grabs quick waltz.")
68 True
69 >>> is_pangram_fastest("The quick brown fox jumps over the la_y dog")
70 False
71 >>> is_pangram_fastest()
72 True
73 """
74 return len({char for char in input_str.lower() if char.isalpha()}) == 26
75
76
77def benchmark() -> None:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected