This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
notes:python_cheat_sheet [2026/11/01 23:19] 76.86.252.71 old revision restored (2026/05/27 09:16) |
notes:python_cheat_sheet [2026/11/03 03:29] (current) 101.166.17.61 old revision restored (2026/08/03 07:52) |
||
|---|---|---|---|
| Line 123: | Line 123: | ||
| | | ||
| </ | </ | ||
| - | * Errors can be raised using '' | + | * Errors can be raised using <code python>raise Exception(' |
| - | * New exception classes can be created and should derive from the Exception class. | + | * |
| - | * '' | + | |
| - | <code python> | + | |
| - | with open(" | + | |
| - | for line in f: | + | |
| - | print(line) | + | |
| - | </ | + | |