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
Get step-by-step solutions from verified subject matter experts
