Editing Russ Python Tips and Techniques
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 7: | Line 7: | ||
* when division by 0 is useful | * when division by 0 is useful | ||
* code is multiple files - scratch file | * code is multiple files - scratch file | ||
+ | * msg, print( msg ) | ||
* moving to 3.6 use fstrings | * moving to 3.6 use fstrings | ||
* example files with functions [[Python Example Code]] | * example files with functions [[Python Example Code]] | ||
Line 12: | Line 13: | ||
* dict based case statements | * dict based case statements | ||
* choose names for cut and paste | * choose names for cut and paste | ||
+ | * spyder using comments for navigation | ||
* mark your code with unusual string * zzz in your code | * mark your code with unusual string * zzz in your code | ||
− | + | * make your names searchable | |
=== Move these to a good place in the outline === | === Move these to a good place in the outline === | ||
Line 81: | Line 83: | ||
If you do not see an easy way to do this with names use a comment. Using zzzz.... is a short term way of doing this. | If you do not see an easy way to do this with names use a comment. Using zzzz.... is a short term way of doing this. | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
= Parameters for Applications = | = Parameters for Applications = |