Question
De-Spanglishification A certain website offers English translations of foreign lyrics. When I search for the lyrics to my favorite Latin jam, I get the following
De-Spanglishification
A certain website offers English translations of foreign lyrics. When I search for the lyrics to my favorite Latin jam, I get the following result:
La Bamba
The Bamba
Para bailar la Bamba,
To dance the Bamba,
para bailar la Bamba,
to dance the Bamba,
se necesita una poca de gracia.
one needs a bit of grace.
Una poca de gracia para m, para ti,
A bit of grace for me, for you,
ya arriba, ya arriba,
now come on, come on,
These results, which have been stored in the provided file Bamba-Spanglish_v1.txt, contains the Spanish and English lyrics interlaced on odd and even lines. What I really want is a pair of files Bamba-Spanish.txt and Bamba-English.txt which contain the Spanish and English lyrics respectively. Write a program that separates the given file into the two separate files as described.
Step 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