Skip to content

Commit efeb352

Browse files
committed
Altered non test files for concept exercise to test no important files changed fix. DO NOT MERGEgit status
1 parent c8b3a39 commit efeb352

File tree

3 files changed

+2
-36
lines changed

3 files changed

+2
-36
lines changed

exercises/concept/making-the-grade/.docs/hints.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Also being familiar with the following can help with completing the tasks:
2222
## 2. Non-Passing Students
2323

2424
- There's no need to declare `loop` counters or `index` counters when iterating through an object using a `for` loop.
25-
- A results counter does need to be set up and _incremented_ -- you'll want to `return` the count of non-passing students when the loop terminates.
25+
2626

2727
## 3. The "Best"
2828

@@ -34,7 +34,6 @@ Also being familiar with the following can help with completing the tasks:
3434

3535
- These are _lower thresholds_. The _lower threshold_ for a "D" is a score of **41**, since an "F" is **<= 40**.
3636
- [`range()`][range] can be helpful here to generate a sequence with the proper "F" -> "A" increments.
37-
- [`round()`][round] without parameters should round off increments nicely.
3837
- As with "the best" task, `<list>.append()` could be useful here to append items from `range()` into a results `list`.
3938

4039
## 5. Matching Names to Scores
@@ -45,7 +44,6 @@ Also being familiar with the following can help with completing the tasks:
4544
## 6. A "Perfect" Score
4645

4746
- There may be or may not be a student with a score of 100, and you can't return `[]` without checking **all** scores.
48-
- The [`control flow`][control flow] statements `continue` and `break` may be useful here to move past unwanted values.
4947

5048
[append and pop]: https://docs.python.org/3/tutorial/datastructures.html#more-on-lists
5149
[control flow]: https://docs.python.org/3/tutorial/controlflow.html#break-and-continue-statements-and-else-clauses-on-loops

exercises/concept/making-the-grade/.docs/introduction.md

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,6 @@ The keywords `break`, `continue`, and `else` help customize loop behavior.
1010

1111
[`while`][while statement] loops will continue to execute as long as the `loop expression` or "test" evaluates to `True` in a [`boolean context`][truth value testing], terminating when it evaluates to `False`:
1212

13-
```python
14-
15-
# Lists are considered "truthy" in a boolean context if they
16-
# contain one or more values, and "falsy" if they are empty.
17-
18-
>>> placeholders = ["spam", "ham", "eggs", "green_spam", "green_ham", "green_eggs"]
19-
20-
>>> while placeholders:
21-
... print(placeholders.pop(0))
22-
...
23-
'spam'
24-
'ham'
25-
'eggs'
26-
'green_spam'
27-
'green_ham'
28-
'green_eggs'
29-
```
3013

3114

3215
## For
@@ -135,21 +118,6 @@ If both values and their indexes are needed, the built-in [`enumerate(<iterable>
135118

136119
The [`continue`][continue statement] keyword can be used to skip forward to the next iteration cycle:
137120

138-
```python
139-
word_list = ["bird", "chicken", "barrel", "bongo", "sliver", "apple", "bear"]
140-
141-
# This will skip *bird*, at index 0
142-
for index, word in enumerate(word_list):
143-
if index == 0:
144-
continue
145-
if word.startswith("b"):
146-
print(f"{word.title()} (at index {index}) starts with a b.")
147-
148-
'Barrel (at index 2) starts with a b.'
149-
'Bongo (at index 3) starts with a b.'
150-
'Bear (at index 6) starts with a b.'
151-
```
152-
153121

154122
The [`break`][break statement] (_like in many C-related languages_) keyword can be used to stop the iteration and "break out" of the innermost enclosing `loop`:
155123

exercises/concept/making-the-grade/.meta/exemplar.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ def count_failed_students(student_scores):
2424
non_passing = 0
2525
for score in student_scores:
2626
if score <= 40:
27-
non_passing += 1
27+
non_passing += 2
2828
return non_passing
2929

3030

0 commit comments

Comments
 (0)