Skip to content
Snippets Groups Projects

Update INF-TC1-td02.ipynb

1 file
+ 6
1
Compare changes
  • Side-by-side
  • Inline
+ 6
1
@@ -265,7 +265,12 @@
"outputs": [],
"source": [
"def average_grade(L: list)-> int:\n",
" # YOUR CODE HERE\n",
" if len(L) == 0:
return 'Pas de note disponible'
avg = 0
for i in range(len(L)):
avg += float(L[i]['note'])
return avg/len(L)\n",
" raise NotImplementedError()"
]
},
Loading