# variables

Create Your Secret Agent Code

Every secret agent needs a Secret Code Number! Build yours in three steps, updating the same variable along the way. 🕵️

You're given a name, favorite number, and day of the month:

  1. Start code as the number of letters in name.
  2. Reassign code to be code multiplied by favorite_number.
  3. Reassign code to be code plus day_of_month.
  4. Print code.

For example, Max, 7, 5 → letters in "Max" is 3 → 3 × 7 = 21 → 21 + 5 = 26.

💡 need a hint?

var-secret-code.py🔒 given lines are locked — write your code in between
loading...