Skip to content

Commit efe25ae

Browse files
committed
Cleaning up instructions, week 3 and 4
1 parent 5d0aa1d commit efe25ae

9 files changed

Lines changed: 373 additions & 64 deletions

‎Week_0_python/a_tutorial_strings_format.ipynb‎

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,7 @@
2626
"metadata": {},
2727
"source": [
2828
"## Printing out variables or displaying them in the debugger\n",
29-
"This is probably the most common use for strings. You should (almost) always do some formatting/additional text to explain what you're printing out. These first examples just demonstrate using strings in print functions without much formatting.",
30-
"\n",
29+
"This is probably the most common use for strings. You should (almost) always do some formatting/additional text to explain what you're printing out. These first examples just demonstrate using strings in print functions without much formatting.\n",
3130
"TODO Edits to make/try\n",
3231
"- change the order of prints\n",
3332
"- add in some additional text (eg - print \"foo\" before printing a_string)"
@@ -130,8 +129,7 @@
130129
"Yes, this syntax is weird. Think of it as calling the string function\n",
131130
" **format(\"string to format var 1 (put first variable here) var 2 (put second variable here)\", first variable, second)**\n",
132131
"\n",
133-
"The curly brackets tell the format function to \"fill in\" the variables that are passed in. Python provides a much nicer way of doing this with **f(\"\")** which we'll show below. It's useful to see the more traditional, C++ or Matlab version first.",
134-
"\n",
132+
"The curly brackets tell the format function to \"fill in\" the variables that are passed in. Python provides a much nicer way of doing this with **f(\"\")** which we'll show below. It's useful to see the more traditional, C++ or Matlab version first.\n",
135133
"TODO edits to try/do\n",
136134
" - add in a 3rd variable to pring\n",
137135
" - print with 5 decimal places\n",
@@ -265,7 +263,7 @@
265263
},
266264
{
267265
"cell_type": "code",
268-
"execution_count": 38,
266+
"execution_count": null,
269267
"metadata": {},
270268
"outputs": [],
271269
"source": [
@@ -507,7 +505,7 @@
507505
"name": "python",
508506
"nbconvert_exporter": "python",
509507
"pygments_lexer": "ipython3",
510-
"version": "3.7.3"
508+
"version": "3.7.4"
511509
}
512510
},
513511
"nbformat": 4,

0 commit comments

Comments
 (0)