Python: Jika nol berikan nilai jika tidak null concatenate

def concat_fields(field1, field2):
    if field1.strip() == "" or field2.strip() == "":
        return ""
    else:
        return field1 + field2
Andrea Perlato