Skip to content

Commit 893f429

Browse files
authored
Update nested_loop_number_of_failed_students_example.py
1 parent e25248d commit 893f429

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed
Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
scores = [[90, 30, 80, 100], [100, 80, 95, 87], [75, 84, 77, 90]]
1+
scores = [[90, 30, 80, 100], [100, 80, 95, 87], [75, 84, 77, 50]]
22

33
failed_score = 60
44
num_failed_students = 0
@@ -7,4 +7,5 @@
77
if score < failed_score:
88
num_failed_students += 1
99
break
10-
print("Number of students who failed a test: " + str(num_failed_students))
10+
11+
print(f"Number of students who failed a test: {num_failed_students}")

0 commit comments

Comments
 (0)