This page (revision-17) was last changed on 2025-08-01 12:57 by Murray Altheim

This page was created on 2025-07-30 02:51 by Murray Altheim

Only authorized users are allowed to rename pages.

Only authorized users are allowed to delete pages.

Page revision history

Version Date Modified Size Author Changes ... Change note
17 2025-08-01 12:57 2 KB Murray Altheim to previous
16 2025-07-30 12:48 2 KB Murray Altheim to previous | to last
15 2025-07-30 12:48 3 KB Murray Altheim to previous | to last
14 2025-07-30 12:48 3 KB Murray Altheim to previous | to last
13 2025-07-30 07:19 3 KB Murray Altheim to previous | to last
12 2025-07-30 07:18 2 KB Murray Altheim to previous | to last
11 2025-07-30 07:13 2 KB Murray Altheim to previous | to last
10 2025-07-30 07:12 2 KB Murray Altheim to previous | to last
9 2025-07-30 06:58 1 KB Murray Altheim to previous | to last
8 2025-07-30 06:56 1 KB Murray Altheim to previous | to last
7 2025-07-30 06:56 1 KB Murray Altheim to previous | to last
6 2025-07-30 06:55 1 KB Murray Altheim to previous | to last
5 2025-07-30 06:22 718 bytes Murray Altheim to previous | to last
4 2025-07-30 06:18 646 bytes Murray Altheim to previous | to last
3 2025-07-30 03:56 463 bytes Murray Altheim to previous | to last
2 2025-07-30 03:55 458 bytes Murray Altheim to previous | to last
1 2025-07-30 02:51 410 bytes Murray Altheim to last

Page References

Incoming links Outgoing links

Version management

Difference between version and

At line 3 removed one line
%%info
At line 5 removed one line
%%
At line 15 removed 2 lines
%%warning
At line 18 removed one line
%%
At line 15 added one line
At line 22 changed one line
There is a {{try-except-finally}} structure called a __compound statement__, consisting of three separate __blocks__. This is ideal for a main.py file, and is also a very common and useful structure. It is composed of three parts:
There is a {{try-except-finally}} structure called a __compound statement__, consisting of three separate __blocks__. This is ideal for a main.py file, and is also a very common and useful structure.
At line 24 removed 5 lines
* {{try}}: this block contains is the code we want to ''try'' to execute
* {{except}}: this block catches any errors or exceptions that occur and executes the block, handling the exception
* {{finally}}: no matter what happens, this block will be executed after the {{try}} (and possibly {{except}}) blocks are executed
At line 79 added one line
~[We probably need an exercise on [exception handling|ExceptionHandling].]
At line 81 added one line