Skip to content

Commit a74dfbd

Browse files
authored
Msc spelling and grammar fixes for concepts and concept exercises. (#3759)
1 parent 951d4d3 commit a74dfbd

File tree

6 files changed

+13
-13
lines changed

6 files changed

+13
-13
lines changed

concepts/basics/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def add_two_numbers(number_one, number_two):
8989
# the variable will also return the value.
9090
>>> sum_with_return = add_two_numbers(5, 6)
9191
>>> print(sum_with_return)
92-
7
92+
11
9393
```
9494

9595
Functions that do not have an _explicit_ `return` expression will _implicitly_ return the [`None`][none] object.

concepts/classes/about.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,12 +314,12 @@ class MyClass:
314314

315315
# This will compile and run without error, but has no current functionality.
316316
def pending_functionality(self):
317-
# Stubbing or placholding the body of this method.
317+
# Stubbing or place-holding the body of this method.
318318
pass
319319
```
320320

321321
[class method]: https://stackoverflow.com/questions/17134653/difference-between-class-and-instance-methods
322-
[dunder]: https://www.dataindependent.com/python/python-glossary/python-dunder/
322+
[dunder]: https://mathspp.com/blog/pydonts/dunder-methods
323323
[oop]: https://www.educative.io/blog/object-oriented-programming
324324
[dot notation]: https://stackoverflow.com/questions/45179186/understanding-the-dot-notation-in-python
325325
[shadowing]: https://oznetnerd.com/2017/07/17/python-shadowing/

concepts/conditionals/about.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,13 @@ Conditionals can also be nested.
9292

9393

9494
>>> driving_status(63, 78)
95-
'Unlicsensed!'
95+
'Unlicensed!'
9696

9797
>>> driving_status(16, 81)
9898
'Student driver, needs supervision.'
9999

100100
>>> driving_status(23, 80)
101-
'Fully licsensed driver.'
101+
'Fully licensed driver.'
102102
```
103103

104104
## Conditional expressions or "ternary operators"

exercises/concept/black-jack/.docs/instructions.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,15 +79,15 @@ Remember: the value of the hand with the ace needs to be as high as possible _wi
7979

8080
## 4. Determine a "Natural" or "Blackjack" Hand
8181

82-
If the first two cards a player is dealt are an ace (A) and a ten-card (_10, K , Q or J_), then the player has a score of 21.
83-
This is known as a blackjack hand.
82+
If a player is dealt an ace (`A`) and a ten-card (10, `K`, `Q`, or `J`) as their first two cards, then the player has a score of 21.
83+
This is known as a **blackjack** hand.
8484

8585

8686
Define the `is_blackjack(<card_one>, <card_two>)` function with parameters `card_one` and `card_two`, which are a pair of cards.
87-
Determine if the two-card hand is a `blackjack`, and return the boolean `True` if it is, `False` otherwise.
87+
Determine if the two-card hand is a **blackjack**, and return the boolean `True` if it is, `False` otherwise.
8888

8989
**Note** : The score _calculation_ can be done in many ways.
90-
But if possible, we'd like you to check if there is an ace and a ten-card **_in_** the hand (or at a certain position), as opposed to _summing_ the hand values.
90+
But if possible, we'd like you to check if there is an ace and a ten-card **_in_** the hand (_or at a certain position_), as opposed to _summing_ the hand values.
9191

9292
```python
9393
>>> is_blackjack('A', 'K')

exercises/concept/ellens-alien-game/.docs/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ class MyClass:
261261

262262
[calling]: https://www.pythonmorsels.com/topics/calling-a-function
263263
[class method]: https://stackoverflow.com/questions/17134653/difference-between-class-and-instance-methods
264-
[dunder]: https://www.dataindependent.com/python/python-glossary/python-dunder/
264+
[dunder]: https://mathspp.com/blog/pydonts/dunder-methods
265265
[imperative]: https://en.wikipedia.org/wiki/Imperative_programming
266266
[declarative]: https://en.wikipedia.org/wiki/Declarative_programming
267267
[oop]: https://www.digitalocean.com/community/tutorials/how-to-construct-classes-and-define-objects-in-python-3

exercises/concept/guidos-gorgeous-lasagna/.docs/introduction.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,8 +100,8 @@ def add_two_numbers(number_one, number_two):
100100
>>> add_two_numbers(3, 4)
101101
7
102102

103-
# Assigning the function call to a variable and printing
104-
# the variable will also return the value.
103+
# Assigning the function call to a variable and printing it
104+
# will also return the value.
105105
>>> sum_with_return = add_two_numbers(5, 6)
106106
>>> print(sum_with_return)
107107
11
@@ -153,7 +153,7 @@ Dot (`.`) notation is used for calling functions defined inside a class or modul
153153
27
154154

155155

156-
# A mis-match between the number of parameters and the number of arguments will raise an error.
156+
# A mismatch between the number of parameters and the number of arguments will raise an error.
157157
>>> number_to_the_power_of(4,)
158158
...
159159
Traceback (most recent call last):

0 commit comments

Comments
 (0)