control structures and functions using conditional expression we can save line of code for each parameter that has mutable default argument |names and docstrings using good names for function and its parameters goes long way toward making the purpose and use of the function clear to other programmers--and to ourselves some time after we have created the function here are few rules of thumb that you might like to consider use naming schemeand use it consistently in this book we use uppercase for constantstitlecase for classes (including exceptions)camelcase for gui (graphical user interfacefunctions and methods (covered in )and lowercase or lowercase_with_underscores for everything else for all namesavoid abbreviationsunless they are both standardized and widely used be proportional with variable and parameter namesx is perfectly good name for an -coordinate and is fine for loop counterbut in general the name should be long enough to be descriptive the name should describe the data' meaning rather than its type ( amount_due rather than money)unless the use is generic to particular type--seefor examplethe text parameter in the shorten(example functions and methods should have names that say what they do or what they return (depending on their emphasis)but never how they do it--since that might change here are few naming examplesdef find(lsi= )def linear_search(lsi= )def first_index_of(sorted_name_listnamestart= )bad bad good all three functions return the index position of the first occurrence of name in list of namesstarting from the given starting index and using an algorithm that assumes the list is already sorted the first one is bad because the name gives no clue as to what will be foundand its parameters (presumablyindicate the required types (liststringintegerwithout indicating what they mean the second one is bad because the function name describes the algorithm originally used--it might have been changed since this may not matter to users of the functionbut it will probably confuse maintainers if the name implies linear searchbut the algorithm implemented has been changed to binary search the third one is good be