diff --git a/notebooks/Python_walkthrough.ipynb b/notebooks/Python_walkthrough.ipynb index c9388bf..02a2a05 100644 --- a/notebooks/Python_walkthrough.ipynb +++ b/notebooks/Python_walkthrough.ipynb @@ -573,14 +573,15 @@ "source": [ "**Why does this happen?**\n", "\n", - "This happens because Python has reserved some backslash + letter combinations for some actions (see list below) and Windows, contrary to other operating systems, uses backslashs to define paths. The\n", + "This happens because Python has reserve some backslash + letter combinations for some actions (see a non-exhaustive list below) and Windows, contrary to other operating systems, uses backslashs to define paths. The\n", "\n", "``\\n`` (i.e. new line), \n", - "``\\t`` (i.e. Tab), \n", + "``\\t`` (i.e. horizontal Tab), \n", "``\\b`` (i.e. backspace), \n", "``\\f`` (form feed), \n", - "``\\ooo`` (i.e. octal value), \n", - "``\\xhh`` (i.e. hex value)\n", + "``\\v`` (vertical tab),\n", + "``\\r`` (carriage return), \n", + "``\\b`` (backspace)\n", "\n", "The simplest solution is to use \"raw\" strings when defining a path by adding an r before defining the string." ] @@ -599,7 +600,7 @@ } ], "source": [ - "path = r\"C:\\Program Files\\turtle game\" # alternative solution: use double backslash \\\\ instead of single \\\n", + "path = r\"C:\\Program Files\\turtle game\" # alternative solution: use a double backslash \\\\ instead of single \\ or a forward slash\n", "print(path)" ] },