I have a logic:
dic = {.....}if x in dic: do sthelse: dic[x] = 0 do sth (same as previous)
how can I change this logic to one line comprehension?
Aucun commentaire:
Enregistrer un commentaire