Question: Python You are given a file with a list of names (names.txt). Each line contains the first name and last name (separated by a whitespace).

Python You are given a file with a list of names (names.txt). Each line contains the first name and last name (separated by a whitespace). Write a Python function, initials() that takes the file name as in input and print, in separate lines, the initials of the names. Example usage: >>> initials(filename.txt) AB

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!