Trigram Generator from First and Last Names
This was fun coding challenge for a project last year. How do you evaluate the trigram of a person from his or her full name?
Let’s say you want to build a trigram from the first and last name of a person.
The trigram can equal to the first letter of the first name and the first 2 letters of the last name of the person.
The characters of the trigram are usually capitalized.
For example:
“Jéremie Litzler” outputs “JLI”
“John Doe” outputs “JDO”
“Maxime Fèvre” outputs “MFE”
“Carlos Di Montis” outputs “CDI”.
Let’s ⏩ review the code in Python ⏪ for this.