ASSSIGNMENT #3 - DIGITAL CUT OUT
When researching for this assignment, I found myself immersed in reading love letters written by notable authors. I loved the language and emotion that each carried and I started thinking of the role the choice and order of words plays in the meaning or sentiment of a letter. With this in mind, i decided to juxtapose rap lyrics with these love letters and see what would come out of it, how these letters would change.
It did not work out.
I created to txt files with the content I wanted to juxtapose. I wanted the output to have one line from a love letter and one line from the rap lyrics for a certain amount of lines. I went on a stackoverflow thread (https://stackoverflow.com/questions/16922214/reading-a-text-file-and-splitting-it-into-single-words-in-python) which led me to combining both of my txt files into one. I got here by following the instructions but it wasn’t really necessary. Then I ran the code that I thought would alternate them, but it alternated the whole txt file not by line. I ran a few different options (below) but none gave me the output I was looking for.
I had office hours with Jasmine right before class, who suggested it may be a better way to separate all the lines into two different arrays/strings and then do it that way, which seems more straightforward. Working on that now..