Splice Method Syntax Python If Function With Boolean Meaning In Python