(continued from previous pageprint("arguments:"hameggsreturn ham and eggs ('spam'annotations{'ham''return''eggs'argumentsspam eggs 'spam and eggs intermezzocoding style now that you are about to write longermore complex pieces of pythonit is good time to talk about coding style most languages can be written (or more conciseformattedin different stylessome are more readable than others making it easy for others to read your code is always good ideaand adopting nice coding style helps tremendously for that for pythonpep has emerged as the style guide that most projects adhere toit promotes very readable and eye-pleasing coding style every python developer should read it at some pointhere are the most important points extracted for youuse -space indentationand no tabs spaces are good compromise between small indentation (allows greater nesting depthand large indentation (easier to readtabs introduce confusionand are best left out wrap lines so that they don' exceed characters this helps users with small displays and makes it possible to have several code files side-by-side on larger displays use blank lines to separate functions and classesand larger blocks of code inside functions when possibleput comments on line of their own use docstrings use spaces around operators and after commasbut not directly inside bracketing constructsa ( ( name your classes and functions consistentlythe convention is to use camelcase for classes and lower_case_with_underscores for functions and methods always use self as the name for the first method argument (see first look at classes for more on classes and methodsdon' use fancy encodings if your code is meant to be used in international environments python' defaultutf- or even plain ascii work best in any case likewisedon' use non-ascii characters in identifiers if there is only the slightest chance people speaking different language will read or maintain the code intermezzocoding style