diff --git a/semester3/numcs/numcs-summary.pdf b/semester3/numcs/numcs-summary.pdf index 31dcf43..b933397 100644 Binary files a/semester3/numcs/numcs-summary.pdf and b/semester3/numcs/numcs-summary.pdf differ diff --git a/semester3/numcs/parts/06_python/00_intro.tex b/semester3/numcs/parts/06_python/00_intro.tex index ab44e4c..2ec8b25 100644 --- a/semester3/numcs/parts/06_python/00_intro.tex +++ b/semester3/numcs/parts/06_python/00_intro.tex @@ -16,7 +16,8 @@ Assigning and initializing variables uses the same syntax and you cannot have un x # This will not work x = 1 # Notice that there is no type annotated (Python is dynamically typed) x = 10 # Assign another value to x - x = "Hello World" # TypeError (Python is strongly typed) + x = "Hello World" # Is actually possible, due to dynamic typing + x += 10 # This will cause a TypeError arr = [] # Creates an empty list. They are dynamically sized d = {} # Creates an empty dict (Dictionary) arr_list = [ "Hello", "World", 1 ] # Can contain multiple different elements