Skip to content

Commit 1c08fe0

Browse files
authored
Update for_loop_test_scores_example.py
- Changed True/False values to "Yes"/"No", to make output more reader-friendly - Used f-string for string interpolation
1 parent b393891 commit 1c08fe0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

python-break/for_loop_test_scores_example.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44

55
num_failed_scores = 0
66
failed_score = 60
7-
needs_tutoring = False
7+
needs_tutoring = "No"
88
for score in scores:
99
if score < failed_score:
1010
num_failed_scores += 1
1111
if num_failed_scores >= 2:
12-
needs_tutoring = True
12+
needs_tutoring = "Yes"
1313
break
1414

15-
print("Does the student need tutoring? " + str(needs_tutoring))
15+
print(f"Does the student need tutoring? {needs_tutoring}")

0 commit comments

Comments
 (0)