jeudi 21 juin 2018

syntax: Cant assign to conditional

is there a right order so that this piece of code works? Or am I going the absolute wrong way

for k in range(len(self.rows)):
    self.pivotspalten[i] =0  if ((self.rows[k][i] != 0) and (self.rows[k][i] !=1))  else self.pivotspalten[i] = 1

Aucun commentaire:

Enregistrer un commentaire