Skip to content

Commit 62fda47

Browse files
authored
fix bug in Update ex1.py
1 parent 5ce0635 commit 62fda47

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

learntools/sql_advanced/ex1.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ def check(self, query):
8080
# check 2: calculated values
8181
# correct result
8282
correct_list = correct_answwer.loc[correct_answer["time_to_answer"].notna(), "time_to_answer"]
83-
correct_number = correct_list.sum()/len(correct_list))
83+
correct_number = correct_list.sum()/len(correct_list)
8484
# submitted value
8585
submitted_list = results.loc[results["time_to_answer"].notna(), "time_to_answer"]
86-
submitted_number = submitted_list.sum()/len(submitted_list))
86+
submitted_number = submitted_list.sum()/len(submitted_list)
8787
assert (int(submitted_number)==int(correct_number)), ("The results don't look right. Please make sure that the part of the query "
8888
"that calculates the values in the `time_to_answer` column is unmodified.")
8989

0 commit comments

Comments
 (0)