Skip to content

Commit 136c847

Browse files
committed
docs(pangram): improve approach's content and links
1 parent cad5281 commit 136c847

File tree

1 file changed

+2
-1
lines changed
  • exercises/practice/pangram/.approaches/set-len

1 file changed

+2
-1
lines changed

exercises/practice/pangram/.approaches/set-len/content.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,12 @@ def is_pangram(sentence):
88
- This approach first makes a [set][set] from the [`lower`][lower]cased characters of the `sentence`.
99
- The characters are filtered using a [set comprehension][set-comprehension] with an `if` [`isalpha()`][isalpha] statement, so that only alphabetic characters make it into the set.
1010
- The function returns whether the [`len()`][len] of the [`set`][set] is `26`.
11-
If the number of unique ASCII letters in the `set` is equal to the `26` letters in the ASCII alphabet, then the function will return `True`.
11+
If the number of unique [ASCII][ascii] (American Standard Code for Information Interchange) letters in the `set` is equal to the `26` letters in the [ASCII][ascii] alphabet, then the function will return `True`.
1212
- This approach is efficient because it uses a set to eliminate duplicates and directly checks the length, which is a constant time operation.
1313

1414
[lower]: https://docs.python.org/3/library/stdtypes.html?#str.lower
1515
[set]: https://docs.python.org/3/library/stdtypes.html?#set
1616
[set-comprehension]: https://realpython.com/python-set-comprehension/#introducing-set-comprehensions
1717
[isalpha]: https://docs.python.org/3/library/stdtypes.html?highlight=isalpha#str.isalpha
1818
[len]: https://docs.python.org/3/library/functions.html?#len
19+
[ascii]: https://en.wikipedia.org/wiki/ASCII

0 commit comments

Comments
 (0)