I invite candidates to "error out" to internet resources and use their own professional judgement about what is and is not okay.
To set people at ease I tell them up front that only one candidate has crossed the line (googled the solution) and everyone else has made perfectly appropriate choices; "elseif or elif?" and small details like that.