- 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.
2 ответов
+ 2
Many ways.. Find your own approach and try to implement. If not done, then ask by sharing your try..
Good luck..
+ 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