Introduction to Python

Concatenation of files

Given two files:
  1. names.txt which contains the first names of the customers,
  1. surnames.txt which contains the surnames of those people in the same order,
You are asked to merge those files and create a new one named fullnames.txt which would contain the names and the surnames separated by a space. It’s guaranteed that the names.txt and the surnames.txt contain the same number of lines.
Arthur Anna
Brown Black
Arthur Brown Anna Black


Time limit: 1 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue