Question · Python course · Module 5: Flask and Web Apps

render_template

How do you render the template 'species.html' with an 'animals' variable?

Answer options

  • return render('species.html').with(animals)
  • return template('species.html', animals)
  • return render_template('species.html', animals=animals)
  • return Jinja2('species.html', animals)

You can check the correct answer by solving this task in the CodeWorlds game.