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/06/12 23:59] 114.119.135.37 old revision restored (2026/06/08 23:41) |
notes:python_cheat_sheet [2026/06/13 18:52] (current) 216.73.216.147 old revision restored (2026/06/13 16:14) |
||
|---|---|---|---|
| Line 26: | Line 26: | ||
| * lambda x: x + n creates a small anonymous function. | * lambda x: x + n creates a small anonymous function. | ||
| * A function should contain a triply quoted doc string at the start. This is accessible with func.__doc__ . | * A function should contain a triply quoted doc string at the start. This is accessible with func.__doc__ . | ||
| - | * 4 spaces per indent, no tabs. CamelCase | + | * 4 spaces per indent, no tabs. CamelCasel |
| ===== Lists ===== | ===== Lists ===== | ||