Using Jupyter (Good), Exercises
Exercise 1 (Learning to interrupt)
Exercise 2 (Resetting & Restarting the Kernal)
Fix this by Restarting the Kernal. This will also restart the Python interpreter.
Exercise 3 (Timing Stuff) The two code examples below achieve the same end result.
- Verify that both codes give the same result (HINT:
print()). - Use
%%timeitto measure the execution time for each example. - Discuss with a friend to understand what each of the numbers in the
%%timeitoutput represents and write down their meanings.
Footnotes
Okay, okay it was me, but you pressed the button.↩︎