Skip to content

Conversation

@techie-ashish1924
Copy link

@techie-ashish1924 techie-ashish1924 commented Jul 22, 2021

to find string is panagram or not

str=input()
if (' ' not in set(str.lower()) and len(set(str.lower()))==26) or ( ' ' in set(str.lower()) and len(set(str.lower()))==27) :
print("String is Panagram")
else:
print("String is not Panagram")

str=input()
s=set(str.lower())
if (' ' not in s and len(s)==26) or ( ' ' in s and len(s)==27) :
    print("String is Panagram")
else:
    print("String is not Panagram")
@amirkhan1092
Copy link
Contributor

plz try again ....this will not work if any other special char included in string not the only space always.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants