Question
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
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 foundStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started