Just the Initials

Python for AIMedium+10 XP+10

Just the Initials

A seating chart only has room for initials.

Write initials(full_names). Each full name has exactly two words: a first name and a last name, separated by one space. Return a new list where each name becomes its two first letters, in capitals.

Keep the same order. An empty list gives back an empty list.

Examples

full_names = ["Ada Lovelace", "alan turing"]
returns ['AL', 'AT']
full_names = ["Grace Hopper"]
returns ['GH']

Hints

Solve it to unlock the solution

Once your code passes every test, a reference solution shows up here so you can compare it with yours.

solution.py
CtrlEnterto run