Skip to content

Commit 14f2a2d

Browse files
committed
Changed emoji examples in indtroduction to be more differentiated.
1 parent 3297093 commit 14f2a2d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

β€Žexercises/concept/cater-waiter/.docs/introduction.mdβ€Ž

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ A `set` can be directly entered as a _set literal_ with curly `{}` brackets and
3232
Duplicates are silently omitted:
3333

3434
```python
35-
>>> one_element = {'πŸ˜€'}
36-
{'πŸ˜€'}
35+
>>> one_element = {'βž•'}
36+
{'βž•'}
3737

38-
>>> multiple_elements = {'πŸ˜€', 'πŸ˜ƒ', 'πŸ˜„', '😁'}
39-
{'πŸ˜€', 'πŸ˜ƒ', 'πŸ˜„', '😁'}
38+
>>> multiple_elements = {'βž•', 'πŸ”»', 'πŸ”Ή', 'πŸ”†'}
39+
{'βž•', 'πŸ”»', 'πŸ”Ή', 'πŸ”†'}
4040

4141
>>> multiple_duplicates = {'Hello!', 'Hello!', 'Hello!',
4242
'Β‘Hola!','ΠŸΡ€ΠΈΠ²Ρ–Ρ‚!', 'こんにけは!',
@@ -91,19 +91,19 @@ Sets can hold different datatypes and _nested_ datatypes, but all `set` elements
9191

9292
```python
9393
# Attempting to use a list for a set member throws a TypeError
94-
>>> lists_as_elements = {['πŸ˜…','🀣'],
95-
['πŸ˜‚','πŸ™‚','πŸ™ƒ'],
96-
['😜', 'πŸ€ͺ', '😝']}
94+
>>> lists_as_elements = {['🌈','πŸ’¦'],
95+
['☁️','⭐️','🌍'],
96+
['⛡️', '🚲', 'πŸš€']}
9797

9898
Traceback (most recent call last):
9999
File "<stdin>", line 1, in <module>
100100
TypeError: unhashable type: 'list'
101101

102102

103103
# Standard sets are mutable, so they cannot be hashed.
104-
>>> sets_as_elements = {{'πŸ˜…','🀣'},
105-
{'πŸ˜‚','πŸ™‚','πŸ™ƒ'},
106-
{'😜', 'πŸ€ͺ', '😝'}}
104+
>>> sets_as_elements = {{'🌈','πŸ’¦'},
105+
{'☁️','⭐️','🌍'},
106+
{'⛡️', '🚲', 'πŸš€'}}
107107

108108
Traceback (most recent call last):
109109
File "<stdin>", line 1, in <module>

0 commit comments

Comments
Β (0)