Question: in Python pls and could explain what you did as well Write a script which accepts as an argument the name of a file. Each

in Python pls and could explain what you did as well

Write a script which accepts as an argument the name of a file. Each line in the file will include a person's name (last,first), a phone number, and other information. The script should read in the contents of the file and print out every person's name and phone number, sorted alphabetically by last name. Output should look like: Name: Phone: Sample data file: Jordan,Michael B. 970-898-0001 Thurman,Uma K. (970)898-0002 Craig,Daniel 970-898-0003 #Best bond ever? Grande, Ariana 970-898-0004 Sample Output: Name: Craig,Daniel Phone:970-898-0003 Name: Grande, Ariana Phone:970-898-0004 Name: Jordan,Michael B. Phone:970-898-0001 Name: Thurman,Uma K. Phone:(970)898-0002

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!