Example Of Recursive Algorithm Python If Statements