Skip to content

Commit

Permalink
return none
Browse files Browse the repository at this point in the history
  • Loading branch information
javlintor committed Nov 14, 2023
1 parent a6834da commit 39df470
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions notebooks/introduction-python/exercises.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,22 @@
"metadata": {
"id": "-xt1nDKN0wuN"
}
},
{
"cell_type": "markdown",
"source": [
":::{exercise} :label: return-none\n",
"Lee [este blog](https://stackoverflow.com/questions/15300550/return-return-none-and-no-return-at-all) sobre en una función que devuelve `None` es mejor\n",
"\n",
"- No incluir `return`\n",
"- Incuir solamente `return`\n",
"- Incluir `return None`\n",
"\n",
"Y pon ejemplos de cuándo deberíamos usar cada uno de ellos."
],
"metadata": {
"id": "HA3ELD5xrOH_"
}
}
],
"metadata": {
Expand Down

0 comments on commit 39df470

Please sign in to comment.