Skip to content

Commit 0674c02

Browse files
authored
Refactor check_pangram.py to remove duplicate import
Removed duplicate import of doctest and added a newline at the end of the file.
1 parent a76637b commit 0674c02

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

strings/check_pangram.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
import doctest
2+
3+
4+
15
def check_pangram(input_str: str) -> bool:
26
"""
37
Check if a string is a pangram (contains every letter of the alphabet).
@@ -12,6 +16,5 @@ def check_pangram(input_str: str) -> bool:
1216

1317

1418
if __name__ == "__main__":
15-
import doctest
16-
1719
doctest.testmod()
20+

0 commit comments

Comments
 (0)