Complex and interesting Python functions – My Notes