Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

write a function, combinenames(ifile1,ifile2) where ifile1 is a list of first names which correspond... Question: Write a function, combineNames(ifile1,ifile2) where ifile1 is a list of

write a function, combinenames(ifile1,ifile2) where ifile1 is a list of first names which correspond... Question: Write a function, combineNames(ifile1,ifile2) where ifile1 is a list of first names which corresp... Write a function, combineNames(ifile1,ifile2) where ifile1 is a list of first names which correspond to the same line in ifile2 for the last name. If there is no last name (the line is empty) use the string showed below. This uses try and except to check for missing files.

This is the output and ifiles you need to code this and in python please.

home / study / engineering / computer science / computer science questions and answers / home / study / engineering / computer science / computer science questions and answers / write ...

Your question has been answered

Let us know if you got a helpful answer. Rate this answer

Question: Home / study / engineering / computer science / computer science questions and answers / write a ...

home / study / engineering / computer science / computer science questions and answers / write a function, combinenames(ifile1,ifile2) where ifile1 is a list of first names which correspond... Question: Write a function, combineNames(ifile1,ifile2) where ifile1 is a list of first names which corresp... Write a function, combineNames(ifile1,ifile2) where ifile1 is a list of first names which correspond to the same line in ifile2 for the last name. If there is no last name (the line is empty) use the string showed below. This uses try and except to check for missing files.

This is the output and ifiles in python

image text in transcribed

ifile ifile2

Jane Jones

Jose Garcia

Jermaine

Juzer Patel

>>combineNames('firstnames.txt', 'lastnames.txt') C'Jane Jones', 'Jose Garcia', 'Jermaine NO LAST NAME', "Juzer Patel'] >>combineNames('firstnames.txt', 'nosuchfile.txt' File not found

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

Rules In Database Systems Third International Workshop Rids 97 Sk Vde Sweden June 26 28 1997 Proceedings Lncs 1312

Authors: Andreas Geppert ,Mikael Berndtsson

1997th Edition

3540635165, 978-3540635161

More Books

Students also viewed these Databases questions

Question

List the advantages and disadvantages of the pay programs. page 505

Answered: 1 week ago