Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Design Application Development And Administration

Authors: Michael V. Mannino

4th Edition

0615231047, 978-0615231044

More Books

Students also viewed these Databases questions