vendredi 3 avril 2020

replace None value in dictionary by python (1 key , 3 value)

I would like replace that "None" or "" (empty string) with "NoString" in my dictionary by python , i think a lot of time , but i can't finish it.

this is the dictionary:

{
'Column0':['ID','Company','Name'],
'Column1':[293193,'Exist','Robort Car'],
'Column2':[None,None,""],
'Column3':[None,"Close",None],
'Column4':["",None,None]
}

maybe i will use for and if ,please help me

Aucun commentaire:

Enregistrer un commentaire