Skip to content

Commit 185fbdf

Browse files
authored
Random grammar, spelling and content edits. (#3581)
[no important files changed]
1 parent dfcb006 commit 185fbdf

File tree

17 files changed

+161
-163
lines changed

17 files changed

+161
-163
lines changed

CONTRIBUTING.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ Our documents use [Markdown][markdown-language], with certain [alterations][exer
170170
- Favor `f-strings` for dynamic failure messages. Please make your error messages as relevant and human-readable as possible.
171171
- We relate test cases to **task number** via a custom [PyTest Marker][pytestmark].
172172
- These take the form of `@pytest.mark.task(taskno=<task-number-here>)`. See [Guido's Gorgeous Lasagna][guidos-gorgeous-lasagna-testfile] for an example.
173-
- We prefer **test data files** when test inputs/ouputs are verbose.
173+
- We prefer **test data files** when test inputs/outputs are verbose.
174174
- These should be named with `_data` or `_test_data` at the end of the filename, and saved alongside the test case file.
175175
- See the [Cater-Waiter][cater-waiter] exercise directory for an example of this setup.
176176
- **Test data files** need to be added under an `editor` key within [`config.json "files"`][exercise-config-json].
@@ -270,9 +270,9 @@ Although the majority of test cases are written using `unittest.TestCase`,
270270
- [ ] `.meta/config.json` (**required**)
271271
- [ ] `.meta/example.py` (**required**)
272272
- [ ] `.meta/design.md` (_optional_)
273-
- [ ] `.meta/template.j2` (_template for generating tests from cannonical data_)
274-
- [ ] `.meta/tests.toml` (_tests configuration from cannonical data_)
275-
- [ ] `<exercise-slug>_test.py` (_**auto-generated from cannonical data**_)
273+
- [ ] `.meta/template.j2` (_template for generating tests from canonical data_)
274+
- [ ] `.meta/tests.toml` (_tests configuration from canonical data_)
275+
- [ ] `<exercise-slug>_test.py` (_**auto-generated from canonical data**_)
276276
- [ ] `<exericse-slug>.py` (**required**)
277277

278278
</details>

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@ Hi. &nbsp;👋🏽 &nbsp;👋 &nbsp;**We are happy you are here.**&nbsp; 🎉&nb
1717
**`exercism/Python`** is one of many programming language tracks on [exercism(dot)org][exercism-website].
1818
This repo holds all the instructions, tests, code, & support files for Python _exercises_ currently under development or implemented & available for students.
1919

20-
🌟 &nbsp;&nbsp;Track exercises support Python `3.7` - `3.11.2`.
20+
🌟 &nbsp;&nbsp;Track exercises support Python `3.7` - `3.11.5`.
2121
Exceptions to this support are noted where they occur.
22-
🌟 &nbsp;&nbsp;Track tooling (_test-runner, representer, analyzer, and Continuous Integration_) runs on Python `3.11.2`.
22+
🌟 &nbsp;&nbsp;Track tooling (_test-runner, representer, analyzer, and Continuous Integration_) runs on Python `3.11.5`.
2323

2424
Exercises are grouped into **concept** exercises which teach the [Python syllabus][python-syllabus], and **practice** exercises, which are unlocked by progressing in the syllabus tree &nbsp;🌴&nbsp;.
2525
Concept exercises are constrained to a small set of language or syntax features.
@@ -67,7 +67,7 @@ _Thoughtful suggestions will likely result faster & more enthusiastic responses
6767

6868
## Python Software and Documentation
6969

70-
**Copyright © 2001-2022 Python Software Foundation. All rights reserved.**
70+
**Copyright © 2001-2023 Python Software Foundation. All rights reserved.**
7171

7272
Python software and documentation are licensed under the [PSF License Agreement][psf-license].
7373

bin/generate_tests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ def parse_datetime(string: str, strip_module: bool = False) -> datetime:
138138
]| # OR
139139
o(?:[0-8]{1,3}) # an octal value
140140
| # OR
141-
x(?:[0-9A-Fa-f]{2}) # a hexidecimal value
141+
x(?:[0-9A-Fa-f]{2}) # a hexadecimal value
142142
| # OR
143143
N # a unicode char name composed of
144144
\{ # an opening brace

concepts/binary-octal-hexadecimal/about.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -190,8 +190,8 @@ As with binary and octal, Python will automatically convert hexadecimal literals
190190
291
191191
```
192192

193-
As with binary and octal - hexidecimal literals **are ints**, and you can perform all integer operations.
194-
Prefixing a non-hexidecimal number with `0x` will raise a `SyntaxError`.
193+
As with binary and octal - hexadecimal literals **are ints**, and you can perform all integer operations.
194+
Prefixing a non-hexadecimal number with `0x` will raise a `SyntaxError`.
195195

196196

197197
### Converting to and from Hexadecimal Representation
@@ -216,9 +216,6 @@ As with binary and octal, giving the wrong base will raise a `ValueError`.
216216
[binary]: https://en.wikipedia.org/wiki/Binary_number
217217
[bit_count]: https://docs.python.org/3/library/stdtypes.html#int.bit_count
218218
[bit_length]: https://docs.python.org/3/library/stdtypes.html#int.bit_length
219-
[bit_count]: https://docs.python.org/3/library/stdtypes.html#int.bit_count
220-
[bit_length]: https://docs.python.org/3/library/stdtypes.html#int.bit_length
221219
[hexadecimal]: https://en.wikipedia.org/wiki/Hexadecimal
222-
[methods-int]: https://docs.python.org/3/library/stdtypes.html#additional-methods-on-integer-types
223220
[numeral-systems]: https://en.wikipedia.org/wiki/Numeral_system
224221
[octal]: https://en.wikipedia.org/wiki/Octal

concepts/binary-octal-hexadecimal/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ Binary is base 2, octal is base 8, and hexadecimal is base 16.
55
Normal integers are base 10 in python.
66
Binary, octal, and hexadecimal literals are all considered `int` subtypes and Python automatically converts between them.
77
This means that they can only represent zero, positive, and negative numbers that do not have a fractional or decimal part.
8-
Binary, octal, and hexidecimal numbers support all integer operations.
8+
Binary, octal, and hexadecimal numbers support all integer operations.
99
However, division (_as with ints_) will return a `float`.
1010

1111
[numeral-systems]: https://en.wikipedia.org/wiki/Numeral_system

concepts/classes/links.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
},
1818
{
1919
"url": "https://dbader.org/blog/6-things-youre-missing-out-on-by-never-using-classes-in-your-python-code",
20-
"description": "6 Things Youre Missing out on by never using classes in your Python code."
20+
"description": "6 Things You are Missing out on by never using classes in your Python code."
2121
},
2222
{
2323
"url": "http://python-history.blogspot.com/2010/06/inside-story-on-new-style-classes.html",

concepts/conditionals/introduction.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ else:
5656
>>> z is greater than x and y
5757
```
5858

59-
[Boolen operations][boolean operations] and [comparisons][comparisons] can be combined with conditionals for more complex testing:
59+
[Boolean operations][boolean operations] and [comparisons][comparisons] can be combined with conditionals for more complex testing:
6060

6161
```python
6262

@@ -77,8 +77,8 @@ else:
7777
'13'
7878
```
7979

80-
[if statement]: https://docs.python.org/3/reference/compound_stmts.html#the-if-statement
81-
[control flow tools]: https://docs.python.org/3/tutorial/controlflow.html#more-control-flow-tools
82-
[truth value testing]: https://docs.python.org/3/library/stdtypes.html#truth-value-testing
8380
[boolean operations]: https://docs.python.org/3/library/stdtypes.html#boolean-operations-and-or-not
8481
[comparisons]: https://docs.python.org/3/library/stdtypes.html#comparisons
82+
[control flow tools]: https://docs.python.org/3/tutorial/controlflow.html#more-control-flow-tools
83+
[if statement]: https://docs.python.org/3/reference/compound_stmts.html#the-if-statement
84+
[truth value testing]: https://docs.python.org/3/library/stdtypes.html#truth-value-testing

concepts/function-arguments/about.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ For the basics on function arguments, please see the [function concept][function
44

55
## Parameter Names
66

7-
Paramater names, like variable names, must start with a letter or underscore and may contain letters, underscores, or numbers.
7+
Parameter names, like variable names, must start with a letter or underscore and may contain letters, underscores, or numbers.
88
Parameter names should not contain spaces or punctuation.
99

1010
## Positional Arguments

concepts/function-arguments/introduction.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ For the basics on function arguments, please see the [function concept][function
44

55
## Parameter Names
66

7-
Paramater names, like variable names, must start with a letter or underscore and may contain letters, underscores, or numbers.
7+
Parameter names, like variable names, must start with a letter or underscore and may contain letters, underscores, or numbers.
88
Parameter names should not contain spaces or punctuation.
99

1010
## Positional Arguments

concepts/functions/about.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22

33
A [`function`][function] is a block of organized, reusable code that is used to perform a specific task.
44
`Functions` provide better modularity for your application and a high degree of code reuse.
5-
Python, like other programming languages, has [_built-in functions_][build-in functions] ([`print`][print], [`map`][map], and so on) that are readily available.
5+
Python, like other programming languages, has [_built-in functions_][built-in functions] ([`print`][print], [`map`][map], and so on) that are readily available.
66
You can also define your own functions. Those are called [`user-defined functions`][user defined functions].
77
Functions can run something as simple as _printing a message to the console_ or they can be quite complex.
88

9-
To execute the code inside a function, you need to call the function, which is done by using the function name followed by parenthesese [`()`].
9+
To execute the code inside a function, you need to call the function, which is done by using the function name followed by parentheses [`()`].
1010
Data, known as [`arguments`][arguments], can be passed to the function by placing them inside the parenthesese.
1111
A function definition may include zero or more [`parameters`][parameters].
1212
Parameters define what argument(s) the function accepts.
@@ -376,7 +376,7 @@ The full list of function attributes can be found at [Python DataModel][attribut
376376
[LEGB Rule]: https://realpython.com/python-scope-legb-rule/
377377
[arguments]: https://www.w3schools.com/python/gloss_python_function_arguments.asp
378378
[attributes]: https://docs.python.org/3/reference/datamodel.html#index-33
379-
[build-in functions]: https://docs.python.org/3/library/functions.html
379+
[built-in functions]: https://docs.python.org/3/library/functions.html
380380
[def]: https://www.geeksforgeeks.org/python-def-keyword/
381381
[dict]: https://docs.python.org/3/tutorial/datastructures.html#dictionaries
382382
[first class objects]: https://en.wikipedia.org/wiki/First-class_object

0 commit comments

Comments
 (0)