better cleaning tool · rvlambda/python-tutorial@b90e4de · GitHub
Skip to content

Commit b90e4de

Browse files
committed
better cleaning tool
1 parent a3b14d0 commit b90e4de

3 files changed

Lines changed: 17 additions & 10 deletions

File tree

‎basics/handy-stuff-strings.md‎

Lines changed: 1 addition & 1 deletion

‎basics/what-is-true.md‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -203,13 +203,13 @@ if value is None: ... # best
203203
## Summary
204204

205205
- `if thing:` does the same thing as `if bool(thing):`. This also
206-
works with while loops and most other things that are usually used
207-
with Booleans.
206+
works with while loops and most other things that are usually used
207+
with Booleans.
208208
- `bool()` of most things is True, but `bool()` values of None,
209-
zero and most empty things are False.
209+
zero and most empty things are False.
210210
- Use `is` and `is not` when comparing to None, `==` and `!=` when
211-
checking if a number is zero and rely on the Boolean value
212-
when checking if something is empty.
211+
checking if a number is zero and rely on the Boolean value
212+
when checking if something is empty.
213213

214214
***
215215

‎strip.py‎

Lines changed: 11 additions & 4 deletions

0 commit comments

Comments
 (0)