Skip to content

Commit 44f88f0

Browse files
committed
chore: remove vulgar example
1 parent cb43fbe commit 44f88f0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/cheatsheet/comprehensions.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ To use an `if-else` statement in a List Comprehension:
114114
A List comprehension can be generated from a dictionary:
115115

116116
```python
117-
>>> c = {'name': 'Pooka', 'first_name': 'Oooka'}
118-
>>> ["{}:{}".format(k.upper(), v.upper()) for k, v in c.items()]
119-
['NAME:POOKA', 'FIRST_NAME:OOOKA']
117+
>>> c = {'name': 'Pooka', 'age': 5}
118+
>>> ["{}:{}".format(k.upper(), v) for k, v in c.items()]
119+
['NAME:Pooka', 'AGE:5']
120120
```

0 commit comments

Comments
 (0)