mercredi 7 juillet 2021

Going inside if condition where it should not [duplicate]

My if condition in Python is not working. It is going inside the condition but it should not. Below is the code snippet:

a = np.nan

if a is not None :
   a = "".join(a)

The code is going inside the if condition and I don't know why.

Aucun commentaire:

Enregistrer un commentaire