Python The Truth Value Of An Array With More Than One Element Is Ambiguous