for row in rowsList:
if row['middle'] is None:
row['middle'] == ""
print("{} {} {}, born {}".format(row['first'], row['middle'], row['last'], row['birth']))
Where middle name in database is NULL I get None. When I have None I don't want to print it. I could use one print when is None and the other print when is not, but I am wondering why is row['middle'] == ""
not updating that value although it enter the if clause?