Question: Q 1 : Email Builder - 3 0 pts The file associated with this question is EmailBuilder.py . Write a function build _ email (
Q: Email Builder pts
The file associated with this question is
EmailBuilder.py
Write a function buildemailfirstname lastname, entryyear such that:
firstname is the first name of the student string
lastname is the last name of the student string
entryyear is the year the student entered Ko University string
The function returns the email address of the student, which is built by concatenating:
First letter of the student's first name
Student's last name in full
Last two digits of student's year of entry
@KUEDU.TR
The returned email address should be completely in uppercase.
You must check for the following erroneous inputs:
First and last names should only contain letters from the English alphabet. No numbers,
no punctuation, no empty spaces. First and last names cannot be empty.
o If this rule is violated, buildemail should return string
Year of entry should be a valid year: no letters, no punctuations. Also, year of entry must
be or later.
o If this rule is violated, buildemail should return string
If both rules are simultaneously violated, buildemail should return string
Examples:
firstname "John", lastname "Doe", entryyear
return value JDOE@KUEDU.TR
firstname "Jane", lastname "Smith", entryyear
return value
JSMITH@KUEDU.TR
firstname "JohnMarcus", lastname "Doeington", entryyear
return value
firstname "James", lastname "Cool", entryyear
return value
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
