- 2

Write a Python function to check whether a string is a pangram or not.

Note : Pangrams are words or sentences containing every letter of the alphabet at least once. For example : "The quick brown fox jumps over the lazy dog". Can anyone tell me how to solve this.

29th Mar 2022, 11:31 AM
Akash Gupta
Akash Gupta - avatar
2 odpowiedzi
+ 2
Many ways.. Find your own approach and try to implement. If not done, then ask by sharing your try.. Good luck..
29th Mar 2022, 11:42 AM
Jayakrishna 🇮🇳
+ 1
You can approach the task like this: * remove all non-characters from the string * convert the remaining characters to all lowercase (or all uppercase) * make a set of it * check if the set has as many elements as the (Latin) alphabet has letters
29th Mar 2022, 11:41 AM
Lisa
Lisa - avatar