Skip to content

Commit 31082fc

Browse files
committed
Applied changes from code review.
1 parent 75486c1 commit 31082fc

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

concepts/none/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,6 @@ def add_to_todos(new_task, todo_list=None):
2828

2929
```python
3030
a = None
31-
if a: #=> a will be evaluated to False when its used in a conditional check.
31+
if a: #<-- a will be evaluated to False when it is used in a conditional check.
3232
print("This will not be printed")
3333
```

concepts/random/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ Possible results from `randint()` _include_ the upper bound, so `randint(a, b)`
9292
These two functions assume that you are starting from some [sequence][sequence-types] or other container.
9393
This will typically be a `list`, or with some limitations, a `tuple` or a `set` (_a `tuple` is immutable, and `set` is unordered_).
9494

95-
The `choice()` function will return one member chosen at random from a given sequence and `choices()` will return a specified number of members (`k`) chosen at random from a given sequence.
95+
The `choice()` function will return one member chosen at random from a given sequence, and `choices()` will return a specified number of members (`k`) chosen at random from a given sequence.
9696
In the examples shown above, we assumed a fair coin with equal probability of heads or tails, but weights can also be specified.
9797

9898
For example, if a bag contains 10 red balls and 15 green balls, and we would like to pull one out at random:

0 commit comments

Comments
 (0)