Skip to content

Commit f5f9ea8

Browse files
committed
Adding pangrams problem for strings
1 parent 9992d5c commit f5f9ea8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

allalgorithms/string/pangrams.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Algorithm to check the string is pangram or not
2+
3+
alpha = "abcdefghijklmnopqrstuvwxyz "
4+
5+
def isPangram(s):
6+
for i in alpha:
7+
if i not in s:
8+
return "not pangram"
9+
return "pangram"
10+
s = input().lower()
11+
print(isPangram(s))
12+

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy