Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitf5f9ea8

Browse files
committed
Adding pangrams problem for strings
1 parent9992d5c commitf5f9ea8

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+
defisPangram(s):
6+
foriinalpha:
7+
ifinotins:
8+
return"not pangram"
9+
return"pangram"
10+
s=input().lower()
11+
print(isPangram(s))
12+

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp