diff --git a/TODO.html b/TODO.html index c25b610..b587c36 100644 --- a/TODO.html +++ b/TODO.html @@ -165,21 +165,7 @@ diff --git a/_sources/notebooks/python_basics.ipynb b/_sources/notebooks/python_basics.ipynb index a3e8c1a..5c44dbb 100644 --- a/_sources/notebooks/python_basics.ipynb +++ b/_sources/notebooks/python_basics.ipynb @@ -6,7 +6,7 @@ "source": [ "# Python essentials to get you started\n", "\n", - "This notebook is designed to familiarize you with some basic programming constructs before the start of actual instruction. If you've coded before, this will show you how stuff you already know are implemented in the Python programming language. If you've never coded before, you'll probably be a bit confused. Don't worry! The class hasn't started yet!" + "This notebook is designed to familiarize you with some basic programming constructs. If you've coded before, this will show you how stuff you already know are implemented in the Python programming language." ] }, { @@ -25,7 +25,7 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 2, "metadata": {}, "outputs": [], "source": [ @@ -46,7 +46,7 @@ }, { "cell_type": "code", - "execution_count": 26, + "execution_count": 3, "metadata": {}, "outputs": [ { @@ -80,7 +80,7 @@ }, { "cell_type": "code", - "execution_count": 25, + "execution_count": 4, "metadata": {}, "outputs": [ { @@ -137,7 +137,7 @@ "traceback": [ "\u001b[0;31m---------------------------------------------------------------------------\u001b[0m", "\u001b[0;31mTypeError\u001b[0m Traceback (most recent call last)", - "\u001b[1;32m/Users/glupyan/gitRepos/psych750.github.io/notebooks/python_basics.ipynb Cell 10\u001b[0m in \u001b[0;36m\u001b[0;34m()\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[39mprint\u001b[39m(\u001b[39m\"\u001b[39m\u001b[39mAdding 3 to var_2 gets us \u001b[39m\u001b[39m\"\u001b[39m, var_2\u001b[39m+\u001b[39m\u001b[39m3\u001b[39m)\n\u001b[0;32m----> 2\u001b[0m \u001b[39mprint\u001b[39m(\u001b[39m\"\u001b[39m\u001b[39mAdding 3 to var_3 gets us \u001b[39m\u001b[39m\"\u001b[39m, var_3\u001b[39m+\u001b[39;49m\u001b[39m3\u001b[39;49m)\n", + "Cell \u001b[0;32mIn[5], line 2\u001b[0m\n\u001b[1;32m 1\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mAdding 3 to var_2 gets us \u001b[39m\u001b[38;5;124m\"\u001b[39m, var_2\u001b[38;5;241m+\u001b[39m\u001b[38;5;241m3\u001b[39m)\n\u001b[0;32m----> 2\u001b[0m \u001b[38;5;28mprint\u001b[39m(\u001b[38;5;124m\"\u001b[39m\u001b[38;5;124mAdding 3 to var_3 gets us \u001b[39m\u001b[38;5;124m\"\u001b[39m, \u001b[43mvar_3\u001b[49m\u001b[38;5;241;43m+\u001b[39;49m\u001b[38;5;241;43m3\u001b[39;49m)\n", "\u001b[0;31mTypeError\u001b[0m: can only concatenate str (not \"int\") to str" ] } @@ -169,7 +169,7 @@ }, { "cell_type": "code", - "execution_count": 33, + "execution_count": 6, "metadata": { "tags": [ "hide-output" @@ -206,7 +206,7 @@ }, { "cell_type": "code", - "execution_count": 35, + "execution_count": 7, "metadata": { "tags": [ "hide-output" @@ -252,7 +252,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 8, "metadata": {}, "outputs": [], "source": [ @@ -268,7 +268,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 10, "metadata": {}, "outputs": [ { @@ -300,7 +300,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 11, "metadata": {}, "outputs": [ { @@ -341,7 +341,7 @@ }, { "cell_type": "code", - "execution_count": 37, + "execution_count": 12, "metadata": {}, "outputs": [ { @@ -368,7 +368,7 @@ }, { "cell_type": "code", - "execution_count": 38, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -396,7 +396,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 14, "metadata": { "scrolled": true }, @@ -441,7 +441,7 @@ }, { "cell_type": "code", - "execution_count": 1, + "execution_count": 15, "metadata": {}, "outputs": [ { @@ -479,7 +479,7 @@ }, { "cell_type": "code", - "execution_count": 2, + "execution_count": 16, "metadata": {}, "outputs": [ { @@ -501,7 +501,7 @@ }, { "cell_type": "code", - "execution_count": 3, + "execution_count": 17, "metadata": {}, "outputs": [ { @@ -527,8 +527,10 @@ ] }, { - "cell_type": "markdown", + "cell_type": "code", + "execution_count": null, "metadata": {}, + "outputs": [], "source": [ ":::{tip}\n", "If all you need to do is to execute some command a certain number of times, there's a Python convention to use `_` as a throwaway index variable, for example, let's generate 5 random integers between 1-10:\n", @@ -843,7 +845,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 18, "metadata": { "tags": [ "hide-output" @@ -865,12 +867,19 @@ "print(print==True)\n", "print(print==False)" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { "celltoolbar": "Edit Metadata", "kernelspec": { - "display_name": "Python 3.8.13 ('psych750')", + "display_name": "Python 3 (ipykernel)", "language": "python", "name": "python3" }, @@ -884,7 +893,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.8.13" + "version": "3.10.13" }, "vscode": { "interpreter": { @@ -893,5 +902,5 @@ } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 } diff --git a/knitted_Rmd/.DS_Store b/knitted_Rmd/.DS_Store deleted file mode 100644 index 9a945ff..0000000 Binary files a/knitted_Rmd/.DS_Store and /dev/null differ diff --git a/knitted_Rmd/intro_to_tidyverse_files/.DS_Store b/knitted_Rmd/intro_to_tidyverse_files/.DS_Store deleted file mode 100644 index 24da99b..0000000 Binary files a/knitted_Rmd/intro_to_tidyverse_files/.DS_Store and /dev/null differ diff --git a/knitted_Rmd/intro_to_tidyverse_files/libs/.DS_Store b/knitted_Rmd/intro_to_tidyverse_files/libs/.DS_Store deleted file mode 100644 index d3c6352..0000000 Binary files a/knitted_Rmd/intro_to_tidyverse_files/libs/.DS_Store and /dev/null differ diff --git a/notebooks/Exercise0-test.html b/notebooks/Exercise0-test.html index c8bb027..e176c7b 100644 --- a/notebooks/Exercise0-test.html +++ b/notebooks/Exercise0-test.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise1-square.html b/notebooks/Exercise1-square.html index d4938ac..861e99c 100644 --- a/notebooks/Exercise1-square.html +++ b/notebooks/Exercise1-square.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise10-nltk.html b/notebooks/Exercise10-nltk.html index e8fa167..511a389 100644 --- a/notebooks/Exercise10-nltk.html +++ b/notebooks/Exercise10-nltk.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise11-FiniteState.html b/notebooks/Exercise11-FiniteState.html index 7abb94e..01adb4b 100644 --- a/notebooks/Exercise11-FiniteState.html +++ b/notebooks/Exercise11-FiniteState.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise11-oop_circles.html b/notebooks/Exercise11-oop_circles.html index 6535349..51d071f 100644 --- a/notebooks/Exercise11-oop_circles.html +++ b/notebooks/Exercise11-oop_circles.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise2-stroop.html b/notebooks/Exercise2-stroop.html index af02aa4..689be58 100644 --- a/notebooks/Exercise2-stroop.html +++ b/notebooks/Exercise2-stroop.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise3-extended-stroop.html b/notebooks/Exercise3-extended-stroop.html index 014e329..6378da7 100644 --- a/notebooks/Exercise3-extended-stroop.html +++ b/notebooks/Exercise3-extended-stroop.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise3-trials.html b/notebooks/Exercise3-trials.html index 959181e..04cceed 100644 --- a/notebooks/Exercise3-trials.html +++ b/notebooks/Exercise3-trials.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise4-more_modularized_stroop.html b/notebooks/Exercise4-more_modularized_stroop.html index e3d1911..e00a7ac 100644 --- a/notebooks/Exercise4-more_modularized_stroop.html +++ b/notebooks/Exercise4-more_modularized_stroop.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise5-face-search.html b/notebooks/Exercise5-face-search.html index 9f87b9f..bc33312 100644 --- a/notebooks/Exercise5-face-search.html +++ b/notebooks/Exercise5-face-search.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise5-interactive.html b/notebooks/Exercise5-interactive.html index b29d399..74aa982 100644 --- a/notebooks/Exercise5-interactive.html +++ b/notebooks/Exercise5-interactive.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise6-stroop_analysis.html b/notebooks/Exercise6-stroop_analysis.html index 2c95c9c..a4ad2a1 100644 --- a/notebooks/Exercise6-stroop_analysis.html +++ b/notebooks/Exercise6-stroop_analysis.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise6-tilt_analysis.html b/notebooks/Exercise6-tilt_analysis.html index a784a64..b3b64e3 100644 --- a/notebooks/Exercise6-tilt_analysis.html +++ b/notebooks/Exercise6-tilt_analysis.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise7-gss-wrangling.html b/notebooks/Exercise7-gss-wrangling.html index e2922f2..ed7b343 100644 --- a/notebooks/Exercise7-gss-wrangling.html +++ b/notebooks/Exercise7-gss-wrangling.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise7-gss-wrangling_2022.html b/notebooks/Exercise7-gss-wrangling_2022.html index 31bac9a..4ea8b98 100644 --- a/notebooks/Exercise7-gss-wrangling_2022.html +++ b/notebooks/Exercise7-gss-wrangling_2022.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise7-simulations.html b/notebooks/Exercise7-simulations.html index 1da1f29..0846301 100644 --- a/notebooks/Exercise7-simulations.html +++ b/notebooks/Exercise7-simulations.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise8-more-gss-wrangling.html b/notebooks/Exercise8-more-gss-wrangling.html index a880c64..d3a49cc 100644 --- a/notebooks/Exercise8-more-gss-wrangling.html +++ b/notebooks/Exercise8-more-gss-wrangling.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise8-regexps.html b/notebooks/Exercise8-regexps.html index d01e20c..91ceb9d 100644 --- a/notebooks/Exercise8-regexps.html +++ b/notebooks/Exercise8-regexps.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Exercise9-regexps.html b/notebooks/Exercise9-regexps.html index bc7c89d..df1af50 100644 --- a/notebooks/Exercise9-regexps.html +++ b/notebooks/Exercise9-regexps.html @@ -165,21 +165,7 @@ diff --git a/notebooks/ExerciseX-categorizingExpressions.html b/notebooks/ExerciseX-categorizingExpressions.html index 6b1f95b..e167971 100644 --- a/notebooks/ExerciseX-categorizingExpressions.html +++ b/notebooks/ExerciseX-categorizingExpressions.html @@ -165,21 +165,7 @@ diff --git a/notebooks/ExerciseX-faceMorph.html b/notebooks/ExerciseX-faceMorph.html index 6bc7751..aae7b72 100644 --- a/notebooks/ExerciseX-faceMorph.html +++ b/notebooks/ExerciseX-faceMorph.html @@ -165,21 +165,7 @@ diff --git a/notebooks/ExerciseX-imageDrag.html b/notebooks/ExerciseX-imageDrag.html index 2ca066e..786c096 100644 --- a/notebooks/ExerciseX-imageDrag.html +++ b/notebooks/ExerciseX-imageDrag.html @@ -165,21 +165,7 @@ diff --git a/notebooks/PRAW_demo.html b/notebooks/PRAW_demo.html index dcf8193..69afe19 100644 --- a/notebooks/PRAW_demo.html +++ b/notebooks/PRAW_demo.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Python_reference.html b/notebooks/Python_reference.html index f08153e..bede6da 100644 --- a/notebooks/Python_reference.html +++ b/notebooks/Python_reference.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Shell_reference.html b/notebooks/Shell_reference.html index e307d69..3abb28f 100644 --- a/notebooks/Shell_reference.html +++ b/notebooks/Shell_reference.html @@ -67,7 +67,7 @@ - + @@ -165,21 +165,7 @@ diff --git a/notebooks/Tips.html b/notebooks/Tips.html index 34f6ba6..d4d92a7 100644 --- a/notebooks/Tips.html +++ b/notebooks/Tips.html @@ -165,21 +165,7 @@ diff --git a/notebooks/Untitled.html b/notebooks/Untitled.html index 5721549..0dcfd80 100644 --- a/notebooks/Untitled.html +++ b/notebooks/Untitled.html @@ -165,21 +165,7 @@ diff --git a/notebooks/activity_basic_pandas_operations.html b/notebooks/activity_basic_pandas_operations.html index 45905d5..8590d41 100644 --- a/notebooks/activity_basic_pandas_operations.html +++ b/notebooks/activity_basic_pandas_operations.html @@ -165,21 +165,7 @@ diff --git a/notebooks/activity_debugging.html b/notebooks/activity_debugging.html index 4035e9f..589aa55 100644 --- a/notebooks/activity_debugging.html +++ b/notebooks/activity_debugging.html @@ -66,8 +66,6 @@ - - @@ -119,6 +117,8 @@ + +
@@ -165,21 +165,7 @@ diff --git a/notebooks/activity_debugging_experiments.html b/notebooks/activity_debugging_experiments.html index 5c0cc99..0c9bfbd 100644 --- a/notebooks/activity_debugging_experiments.html +++ b/notebooks/activity_debugging_experiments.html @@ -165,21 +165,7 @@ diff --git a/notebooks/activity_dictionaries.html b/notebooks/activity_dictionaries.html index eb393aa..923317c 100644 --- a/notebooks/activity_dictionaries.html +++ b/notebooks/activity_dictionaries.html @@ -66,8 +66,6 @@ - - @@ -119,6 +117,8 @@ + +
@@ -165,21 +165,7 @@ diff --git a/notebooks/activity_file_writing.html b/notebooks/activity_file_writing.html index 8a74aa2..7851372 100644 --- a/notebooks/activity_file_writing.html +++ b/notebooks/activity_file_writing.html @@ -66,8 +66,6 @@ - - @@ -119,6 +117,8 @@ + +
@@ -165,21 +165,7 @@ diff --git a/notebooks/activity_google_this.html b/notebooks/activity_google_this.html index fd8fe6a..a69d7a4 100644 --- a/notebooks/activity_google_this.html +++ b/notebooks/activity_google_this.html @@ -165,21 +165,7 @@ diff --git a/notebooks/activity_list_manip_vowels_1.html b/notebooks/activity_list_manip_vowels_1.html index a60946e..aa8f771 100644 --- a/notebooks/activity_list_manip_vowels_1.html +++ b/notebooks/activity_list_manip_vowels_1.html @@ -66,8 +66,6 @@ - - @@ -119,6 +117,8 @@ + +
@@ -165,21 +165,7 @@ diff --git a/notebooks/activity_merge_sac.html b/notebooks/activity_merge_sac.html index 0bc52ad..d571a72 100644 --- a/notebooks/activity_merge_sac.html +++ b/notebooks/activity_merge_sac.html @@ -167,21 +167,7 @@ diff --git a/notebooks/activity_print_pyramids.html b/notebooks/activity_print_pyramids.html index d5afd42..bbd9999 100644 --- a/notebooks/activity_print_pyramids.html +++ b/notebooks/activity_print_pyramids.html @@ -66,8 +66,6 @@ - - @@ -119,6 +117,8 @@ + +
@@ -165,21 +165,7 @@ diff --git a/notebooks/activity_reference_vs_value.html b/notebooks/activity_reference_vs_value.html index 1364e5f..fe67598 100644 --- a/notebooks/activity_reference_vs_value.html +++ b/notebooks/activity_reference_vs_value.html @@ -165,21 +165,7 @@ diff --git a/notebooks/activity_trial_generation.html b/notebooks/activity_trial_generation.html index 47ee37b..231f054 100644 --- a/notebooks/activity_trial_generation.html +++ b/notebooks/activity_trial_generation.html @@ -66,8 +66,6 @@ - - @@ -119,6 +117,8 @@ + +
@@ -165,21 +165,7 @@ diff --git a/notebooks/classes.html b/notebooks/classes.html index f8c2096..d2f4533 100644 --- a/notebooks/classes.html +++ b/notebooks/classes.html @@ -165,21 +165,7 @@ diff --git a/notebooks/dictionaries.html b/notebooks/dictionaries.html index ecc2a9c..71691bd 100644 --- a/notebooks/dictionaries.html +++ b/notebooks/dictionaries.html @@ -165,21 +165,7 @@ diff --git a/notebooks/dictionaries_exp_design_examples.html b/notebooks/dictionaries_exp_design_examples.html index 1901d28..e7f00b5 100644 --- a/notebooks/dictionaries_exp_design_examples.html +++ b/notebooks/dictionaries_exp_design_examples.html @@ -165,21 +165,7 @@ diff --git a/notebooks/fibonacci.html b/notebooks/fibonacci.html index cbbe0cc..7a06b1e 100644 --- a/notebooks/fibonacci.html +++ b/notebooks/fibonacci.html @@ -165,21 +165,7 @@ diff --git a/notebooks/globbing_files.html b/notebooks/globbing_files.html index 61140ea..a43503e 100644 --- a/notebooks/globbing_files.html +++ b/notebooks/globbing_files.html @@ -165,21 +165,7 @@ diff --git a/notebooks/if_statements.html b/notebooks/if_statements.html index c0b5fbc..996a38a 100644 --- a/notebooks/if_statements.html +++ b/notebooks/if_statements.html @@ -165,21 +165,7 @@ diff --git a/notebooks/introducing_functions.html b/notebooks/introducing_functions.html index dc74a75..28a1638 100644 --- a/notebooks/introducing_functions.html +++ b/notebooks/introducing_functions.html @@ -165,21 +165,7 @@ diff --git a/notebooks/list_basics.html b/notebooks/list_basics.html index 04dbbb3..6c5d65b 100644 --- a/notebooks/list_basics.html +++ b/notebooks/list_basics.html @@ -165,21 +165,7 @@ diff --git a/notebooks/list_comprehension.html b/notebooks/list_comprehension.html index beb33d2..f26a103 100644 --- a/notebooks/list_comprehension.html +++ b/notebooks/list_comprehension.html @@ -165,21 +165,7 @@ diff --git a/notebooks/more_functions.html b/notebooks/more_functions.html index b868bb6..8b3bd6c 100644 --- a/notebooks/more_functions.html +++ b/notebooks/more_functions.html @@ -165,21 +165,7 @@ diff --git a/notebooks/more_gss_practice.html b/notebooks/more_gss_practice.html index 9c67af9..af39663 100644 --- a/notebooks/more_gss_practice.html +++ b/notebooks/more_gss_practice.html @@ -66,8 +66,6 @@ - - @@ -119,6 +117,8 @@ + +
@@ -165,21 +165,7 @@ diff --git a/notebooks/nltk_demo.html b/notebooks/nltk_demo.html index a4e9ded..eb6b794 100644 --- a/notebooks/nltk_demo.html +++ b/notebooks/nltk_demo.html @@ -66,8 +66,6 @@ - - @@ -119,6 +117,8 @@ + +
@@ -165,21 +165,7 @@ diff --git a/notebooks/palindromes_fibonacci.html b/notebooks/palindromes_fibonacci.html index f617c34..55db0d6 100644 --- a/notebooks/palindromes_fibonacci.html +++ b/notebooks/palindromes_fibonacci.html @@ -165,21 +165,7 @@ diff --git a/notebooks/programming_environment_osx.html b/notebooks/programming_environment_osx.html index fd881ca..c163379 100644 --- a/notebooks/programming_environment_osx.html +++ b/notebooks/programming_environment_osx.html @@ -66,8 +66,6 @@ - - @@ -119,6 +117,8 @@ + +
@@ -165,21 +165,7 @@ diff --git a/notebooks/programming_environment_windows.html b/notebooks/programming_environment_windows.html index 589a60a..6f69b62 100644 --- a/notebooks/programming_environment_windows.html +++ b/notebooks/programming_environment_windows.html @@ -66,8 +66,6 @@ - - @@ -119,6 +117,8 @@ + +
@@ -165,21 +165,7 @@ diff --git a/notebooks/project_1.html b/notebooks/project_1.html index 4066c5b..e15c96f 100644 --- a/notebooks/project_1.html +++ b/notebooks/project_1.html @@ -165,21 +165,7 @@ diff --git a/notebooks/project_2023.html b/notebooks/project_2023.html index 180aa56..8ff7f30 100644 --- a/notebooks/project_2023.html +++ b/notebooks/project_2023.html @@ -66,8 +66,8 @@ - - + + @@ -165,21 +165,7 @@ diff --git a/notebooks/python_basics.html b/notebooks/python_basics.html index 6c2b98f..76794eb 100644 --- a/notebooks/python_basics.html +++ b/notebooks/python_basics.html @@ -66,7 +66,6 @@ - @@ -165,21 +164,7 @@ @@ -429,7 +404,7 @@

Contents

Python essentials to get you started#

-

This notebook is designed to familiarize you with some basic programming constructs before the start of actual instruction. If you’ve coded before, this will show you how stuff you already know are implemented in the Python programming language. If you’ve never coded before, you’ll probably be a bit confused. Don’t worry! The class hasn’t started yet!

+

This notebook is designed to familiarize you with some basic programming constructs. If you’ve coded before, this will show you how stuff you already know are implemented in the Python programming language.

Variable types and assignments#

Variables are the building blocks of programs. You tell a compute what to do largely by maniulating the values of variables. Variables come in different types such as string, integer, boolean, and float. Because Python is what’s called a dynamically typed language, you don’t have to declare the type of variable before assigning a value to it. For example, let’s look at these 6 (very badly named) variables.

@@ -511,9 +486,9 @@

Variable types and assignments
---------------------------------------------------------------------------
 TypeError                                 Traceback (most recent call last)
-/Users/glupyan/gitRepos/psych750.github.io/notebooks/python_basics.ipynb Cell 10 in <cell line: 2>()
-      <a href='vscode-notebook-cell:/Users/glupyan/gitRepos/psych750.github.io/notebooks/python_basics.ipynb#X12sZmlsZQ%3D%3D?line=0'>1</a> print("Adding 3 to var_2 gets us ", var_2+3)
-----> <a href='vscode-notebook-cell:/Users/glupyan/gitRepos/psych750.github.io/notebooks/python_basics.ipynb#X12sZmlsZQ%3D%3D?line=1'>2</a> print("Adding 3 to var_3 gets us ", var_3+3)
+Cell In[5], line 2
+      1 print("Adding 3 to var_2 gets us ", var_2+3)
+----> 2 print("Adding 3 to var_3 gets us ", var_3+3)
 
 TypeError: can only concatenate str (not "int") to str
 
@@ -738,15 +713,20 @@

Lists and for

-
-

Tip

-

If all you need to do is to execute some command a certain number of times, there’s a Python convention to use _ as a throwaway index variable, for example, let’s generate 5 random integers between 1-10:

-
import random
+
+
+
:::{tip}
+If all you need to do is to execute some command a certain number of times, there's a Python convention to use `_` as a throwaway index variable, for example, let's generate 5 random integers between 1-10:
+```python
+import random
 for _ in range(25):
     print(random.randrange(1,10+1))
+```
+:::
 
+

A while loop#

diff --git a/notebooks/regexp.html b/notebooks/regexp.html index 5ae67a5..f9cdbac 100644 --- a/notebooks/regexp.html +++ b/notebooks/regexp.html @@ -165,21 +165,7 @@ diff --git a/notebooks/review_of_fundamentals_a.html b/notebooks/review_of_fundamentals_a.html index 39813ad..fdbd12d 100644 --- a/notebooks/review_of_fundamentals_a.html +++ b/notebooks/review_of_fundamentals_a.html @@ -165,21 +165,7 @@ diff --git a/notebooks/review_of_fundamentals_b.html b/notebooks/review_of_fundamentals_b.html index b0c47af..5ad5095 100644 --- a/notebooks/review_of_fundamentals_b.html +++ b/notebooks/review_of_fundamentals_b.html @@ -165,21 +165,7 @@ diff --git a/notebooks/schedule.html b/notebooks/schedule.html index 111d76c..f23c81f 100644 --- a/notebooks/schedule.html +++ b/notebooks/schedule.html @@ -66,8 +66,6 @@ - - @@ -119,6 +117,8 @@ + +
@@ -164,22 +164,8 @@