I am following this book to learn django using notepad++, something interesting happens, when I type the function using notepad++ for the following script:
Tell Notepad++ to show you all characters: go View > Show Symbol > Show All Characters. This will show tabs as → and spaces as ∙. Replace tabs with spaces where necessary to normalize the indentation.