Skip to content

Commit ec00f17

Browse files
author
Renato Rocha Souza
committed
Fix mistake on indexing
1 parent cb9850b commit ec00f17

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Exercises/EN/Basic/03_Lists_and_For_Loops_Solutions.ipynb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -466,14 +466,14 @@
466466
},
467467
{
468468
"cell_type": "code",
469-
"execution_count": 12,
469+
"execution_count": 1,
470470
"metadata": {},
471471
"outputs": [
472472
{
473473
"name": "stdout",
474474
"output_type": "stream",
475475
"text": [
476-
"4.166666666666667\n"
476+
"4.0\n"
477477
]
478478
}
479479
],
@@ -489,7 +489,7 @@
489489
"# Question 1:\n",
490490
"fb_rating_data = [row_one[0], row_one[3], row_one[-1]]\n",
491491
"insta_rating_data = [row_two[0], row_two[3], row_two[-1]]\n",
492-
"pan_rating_data = [row_three[0], row_three[3], row_three[-1]]\n",
492+
"pan_rating_data = [row_five[0], row_five[3], row_five[-1]]\n",
493493
"\n",
494494
"# Question 2:\n",
495495
"avg_rating = (fb_rating_data[-1] + insta_rating_data[-1] + pan_rating_data [-1])/3\n",

0 commit comments

Comments
 (0)