Skip to content

Commit b387ad8

Browse files
committed
Update funcWithSetsAndDict.rst
Fix to def of pp
1 parent 380e2e6 commit b387ad8

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

_sources/functions/funcWithSetsAndDict.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ Sets only Contain Immutable Items
110110

111111
.. Note::
112112

113-
Sets can only store immutable items, even though they are mutable (can change).
113+
Sets can only store immutable items, even though sets themselves are mutable (can change).
114114

115115
Sets Do Not Allow Duplicates
116116
=============================
@@ -298,7 +298,7 @@ You can innitialize a set with a string, list, or tuple. The set will only conta
298298
Sorting Sets
299299
===============
300300
.. activecode:: func_set_sort_ac
301-
:caption: Sorting a set and converting a set to a list
301+
:caption: Sorting a set and converting a set to a list
302302

303303
Run this code to see what it prints.
304304
~~~~
@@ -317,14 +317,14 @@ Sorting Sets
317317

318318
.. Note::
319319

320-
The function sorted(set) will return a new sorted list in ascending order.
320+
The function sorted(set) will return a new list sorted in ascending order.
321321

322322
.. parsonsprob:: func_set_unique_characters_pp
323323
:numbered: left
324324
:adaptive:
325325
:practice: T
326326

327-
Drag the blocks from the left and put them in the correct order on the right to define a function ``total_even`` that returns the total of the even numbers in the passed list.
327+
Drag the blocks from the left and put them in the correct order on the right to define a function ``unique_characters(strings)`` that takes a list of strings and returns a sorted list of all the distinct characters in the strings.
328328
-----
329329
def unique_characters(strings):
330330
=====

0 commit comments

Comments
 (0)