Skip to content

Commit

Permalink
Merge pull request #4 from niclake/exercise-2.1-fix
Browse files Browse the repository at this point in the history
Fixing Exercise 2.1 answers
  • Loading branch information
nathanbraun authored Feb 9, 2024
2 parents 8505479 + 96598bf commit ca6224c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ If I were using Windows, it might look like this:
Set these aside for now and we'll pick them up in chapter 2.

## Changelog
### v0.9.8 (2024-02-09)
Fixed answers for exercise 2.1 (thanks for the pull request Nic!).

### v0.9.7 (2024-02-07)
Minor typos.

Expand Down
6 changes: 3 additions & 3 deletions solutions-to-exercises/02_python_answers.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
b) Valid.
c) Not valid. Can't start with a number.
d) Valid, though convention is to split words with _, not camelCase.
e) `rb1_name`. Valid. Numbers OK as long as they're not in the first spot
f) `flex spot name`. Not valid. No spaces
e) `strike3`. Valid. Numbers OK as long as they're not in the first spot
f) `starting pitcher`. Not valid. No spaces
g) `@home_or_away`. Not valid. Only non alphnumeric character allowed is `_`
h) `'pts_per_rec_yd'`. Not valid. A string (wrapped in quotes), not a
h) `'value_over_replacement'`. Not valid. A string (wrapped in quotes), not a
variable name. Again, only non alphnumeric character allowed is `_`
"""

Expand Down

0 comments on commit ca6224c

Please # to comment.