Powershell Check Length Of Array Python