All attempts should be made to avoid pronouns that exclude people based on gender. To do this you could choose both masculine and feminine pronouns or use the plural nouns and pronouns (their).
Example: When a student attends community college, he or she is giving one's self a chance at a better life.
Example: When students attend community college, they give themselves a chance at a better life.
MLA guidelines encourage the use of the "their" pronoun with person who do not identify by a male/female binary. Writers can also use the plural "their" pronoun if they are writing about a person whose gender is unknown.
Although, it may be considered undesirable to match a singular noun with a plural pronoun, you may want to check with your professor about whether this is acceptable in cases where more specific language would be less inclusive and make certain unfair assumptions about one's gender or identity.