Computer codes written by women get higher approval ratings than the code written by men but only if the gender…