Php Array Add Element To Tuple In Python