Automatically grade a coding question

I'm working with a faculty member to find a way to grade coding questions. The problem is that a given coding question can have an arbitrarily large number of correct solutions. For example she could ask her students to provide

age == 20

as an answer. The students could also provide

20 == age

age == 20

20 == age

and more as correct answers. Providing every possible correct answer for "Fill in the Blank" would be more work than just grading the questions by hand. Is there a way to rephrase questions like this to facilitate grading? Maybe there's a (free) Canvas integration that can accommodate this? Perhaps embed a website like codingbat into the question?