{ "cells": [ { "cell_type": "markdown", "metadata": {}, "source": [ "$$\n", "\\def\\CC{\\bf C}\n", "\\def\\QQ{\\bf Q}\n", "\\def\\RR{\\bf R}\n", "\\def\\ZZ{\\bf Z}\n", "\\def\\NN{\\bf N}\n", "$$\n", "# Chapter 3: `if` statements\n", "\n", "Authors \n", "- Vincent Delecroix\n", "\n", "License \n", "CC BY-SA 3.0\n", "\n", "## Comparisons and `if`\n", "\n", "The comparison signs in Python and many other programming languages are\n", "as follows\n", "\n", "
== | \n",
"equality | \n", "
!= | \n",
"difference | \n", "
< | \n",
"less than | \n", "
> | \n",
"greater than | \n", "
<= | \n",
"lesser than or equal to | \n", "
>= | \n",
"greater than or equal to | \n", "