Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/Module2_EssentialsOfPython/Basic_Objects.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@
"\n",
"**Reading Comprehension: Understanding the modulo operator**\n",
"\n",
"The modulo operator, `%`, is not commonly seen in mathematics textbooks. It is, however, a very useful operation to have at our disposal. `x % y` (said as x \"mod\" y in programmer's jargon) returns the *remainder* of `x / y`, when `x` and `y are non-negative numbers. For example: \n",
"The modulo operator, `%`, is not commonly seen in mathematics textbooks. It is, however, a very useful operation to have at our disposal. `x % y` (said as x \"mod\" y in programmer's jargon) returns the *remainder* of `x / y`, when `x` and `y` are non-negative numbers. For example:\n",
"\n",
"- $\\frac{3}{2} = 1 + \\frac{1}{2}$. 2 \"goes into\" 3 one time, leaving a remainder of 1. Thus `3 % 2` returns `1`\n",
"- $\\frac{9}{3} = 3$. 3 \"goes into\" 9 three times, and leaves no remainder. Thus `9 % 3` returns `0`\n",
Expand Down