Skip to content

Commit 467a440

Browse files
committed
Fixed Typos
1 parent 0261e0f commit 467a440

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

02 Variable Strings and Numbers.ipynb

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@
431431
"source": [
432432
"multiline_string = '''This is a string where I \n",
433433
"can confortably write on multiple lines\n",
434-
"without worrynng about to use the escape character \"\\\\\" as in\n",
434+
"without worring about to use the escape character \"\\\\\" as in\n",
435435
"the previsou example. \n",
436436
"As you'll see, the original string formatting is preserved.\n",
437437
"'''\n",
@@ -1519,16 +1519,18 @@
15191519
"output_type": "stream",
15201520
"text": [
15211521
"<class 'decimal.Decimal'>\n",
1522-
"0.300\n"
1522+
"0.30000000000000002\n",
1523+
"0.30000000000000004\n"
15231524
]
15241525
}
15251526
],
15261527
"source": [
15271528
"from decimal import Decimal, getcontext\n",
1528-
"getcontext().prec = 3\n",
1529+
"getcontext().prec = 17\n",
15291530
"result = 3 * Decimal(0.1)\n",
15301531
"print(type(result))\n",
1531-
"print(3 * Decimal(0.1))"
1532+
"print(3 * Decimal(0.1))\n",
1533+
"print(3 * 0.1)"
15321534
]
15331535
},
15341536
{
@@ -1744,7 +1746,7 @@
17441746
},
17451747
{
17461748
"cell_type": "code",
1747-
"execution_count": 54,
1749+
"execution_count": 4,
17481750
"metadata": {
17491751
"collapsed": false,
17501752
"slideshow": {
@@ -1762,6 +1764,10 @@
17621764
],
17631765
"source": [
17641766
"# This line is a comment.\n",
1767+
"#this \n",
1768+
"#is \n",
1769+
"#not\n",
1770+
"\n",
17651771
"print(\"This line is not a comment, it is code.\")"
17661772
]
17671773
},

Importing Modules.ipynb

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,6 @@
1111
"# Modules"
1212
]
1313
},
14-
{
15-
"cell_type": "code",
16-
"execution_count": null,
17-
"metadata": {
18-
"collapsed": true
19-
},
20-
"outputs": [],
21-
"source": []
22-
},
2314
{
2415
"cell_type": "markdown",
2516
"metadata": {

0 commit comments

Comments
 (0)