def create_form(answered_questions: Iterable[Question]) -> Form: """ A single Form stores single Passenger answers. """ form = Form() form.add_answers( (Answer(question, True) for question in answered_questions)) return form