Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zingale committed Jun 4, 2023
1 parent d78d571 commit 2b92452
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions content/01-python-basics/python-datatypes.ipynb
Expand Up @@ -92,11 +92,13 @@
},
{
"cell_type": "markdown",
"metadata": {},
"metadata": {
"user_expressions": []
},
"source": [
"Note: integer division is one place where python 2 and python 3 different\n",
"Note: integer division is one place where python differs from many other languages/\n",
" \n",
"In python 3.x, dividing 2 integers results in a float. In python 2.x, dividing 2 integers results in an integer. The latter is consistent with many strongly-typed programming languages (like Fortran or C), since the data-type of the result is the same as the inputs, but the former is more inline with our expectations"
"In python, dividing 2 integers results in a float. In most other languages (like Fortran, C, C++), dividing 2 integers results in an integer. "
]
},
{
Expand Down Expand Up @@ -1445,7 +1447,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.9"
"version": "3.11.3"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 2b92452

Please sign in to comment.