1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Python for Developers

Connected

Exercise

Custom function syntax

As part of the IT support team, you frequently need to convert employee names into their company email addresses. The company follows a standard email format: first name (lowercase) + dot + last name (lowercase) + @techcompany.com. For example, "Jane Doe" becomes [email protected].

Instead of manually creating these emails repeatedly, you'll build a custom function to automate this task.

Instructions

100 XP
  • Define a function called generate_email that takes one argument called full_name.
  • Return the generated email from the function.
  • Call the function on the full_name string.