Create and read sanitized email
Input
User(' Alice ', 'ALICE@EXAMPLE.COM', 30).email
Output
alice@example.com
Email is trimmed and lowercased.
Full lesson preview
Practice using @property setters to validate and sanitize attributes like username, email, and age.
Problem statement
Task
Examples
Input
User(' Alice ', 'ALICE@EXAMPLE.COM', 30).email
Output
alice@example.com
Email is trimmed and lowercased.
Input format
Output format
Constraints
Samples
Input
User(' bob ', 'bob@site.com', '0').username
Output
Bob
Username trimmed and capitalized; age string converted to int 0.