Skip to content

Commit 31f617d

Browse files
authored
corrected typos
1 parent 9d0bba8 commit 31f617d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1375,7 +1375,7 @@ The midnight time is not printed.
13751375

13761376
#### 💡 Explanation:
13771377

1378-
Before Python 3.5, the boolean value fo `datetime.time` object was considered to be `False` if it represented midnight in UTC. It is error-prone when using the `if obj:` syntax to check if the `obj` is null or some equivalent of "empty."
1378+
Before Python 3.5, the boolean value for `datetime.time` object was considered to be `False` if it represented midnight in UTC. It is error-prone when using the `if obj:` syntax to check if the `obj` is null or some equivalent of "empty."
13791379

13801380
---
13811381

@@ -1547,7 +1547,7 @@ a, b = a[b] = {}, 5
15471547
* Few weird looking but semantically correct statements:
15481548
+ `[] = ()` is a semantically correct statement (unpacking an empty `tuple` into an empty `list`)
15491549
+ `'a'[0][0][0][0][0]` is also a semantically correct statement as strings are iterable in Python.
1550-
+ `3 --0-- 5 == 8` and `--5 == 5` are both semantically correct statments and evalute to `True`.
1550+
+ `3 --0-- 5 == 8` and `--5 == 5` are both semantically correct statements and evaluate to `True`.
15511551

15521552
* Python uses 2 bytes for local variable storage in functions. In theory, this means that only 65536 variables can be defined in a function. However, python has a handy solution built in that can be used to store more than 2^16 variable names. The following code demonstrates what happens in the stack when more than 65536 local variables are defined (Warning: This code prints around 2^18 lines of text, so be prepared!):
15531553
```py

0 commit comments

Comments
 (0)