From 43953c219a7496e8befa455fd189a5b16b9ceb44 Mon Sep 17 00:00:00 2001 From: Hakan Date: Wed, 15 Jul 2020 23:27:34 +0200 Subject: [PATCH] pangram --- 024_pangram.py | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 024_pangram.py diff --git a/024_pangram.py b/024_pangram.py new file mode 100644 index 0000000..f48f8d8 --- /dev/null +++ b/024_pangram.py @@ -0,0 +1,11 @@ +test ="Cwm fjord bank glyphs vext quiz" +# def is_pangram(s): +# s = s.lower() +# for i in "abcdefghijklmnopqrstuvyxz": +# if i not in s: return False +# return True + +string = "abcdefghijklmnopqrstuvyxz" +def is_pangram(s): + return set(string.lower()) <= set(s.lower()) +print(is_pangram(test)) \ No newline at end of file