in 1c (flow control):
- conditional statement where already done before with if g:
- if not 5 > 6: I would go for brackets here, if you don't know the order it could be not(5>6) or (not 5)>6. Found the brackets use just below
- with the logical operations and brackets, some questions are not clear. I would rephrade in: "Compare 'not False and True' to '(not False) and True' and to 'not (False and True)' to discover the importance of brackets. BTW this can also be done with the exercise a+b/c+d, (a+b)/(c+d), a+(b/c)+d,
- exercise 6 has unfinished text. The above loop does not have a sine of a square sum, a bit unclear. Repeat the sum calculation: we just did a factorial. Range is explained after exercise 6, I really don't get what you want with the exercise6
- using modules from numpy, I would go for np.randint
Again, for TN2513 version of these notebooks...