If you're seeing this message, it means we're having trouble loading external resources on our website.

If you're behind a web filter, please make sure that the domains *.kastatic.org and *.kasandbox.org are unblocked.

Main content

Project: Recommendation engine

Instructions

Recommend a course

See Instructions: Recommendation engine.

  1. Choose at least five possible items to recommend within a category.
  2. Create a variable for each item.
  3. Use the input() function to ask the user for at least three attributes or preferences.
  4. Use conditionals to select a recommendation from among your variables based on the user’s answers.

Your algorithm should include at least two compound conditions, chained conditionals, or nested conditionals.

We’ve started an algorithm that recommends Khan Academy courses. You can choose a different category and rewrite the program, or you can extend the existing program.

What assumptions does your algorithm make?

Code editor

Code files

Output