I'm struggling to clean up the details in the helicopter escape project

Screen Link:
Basics.ipynb (7.1 KB)

My Code:

for row in data:
    data[index] = row[0:-1]
    index += 1
print(data[:3])

What I expected to happen:
[‘August 19, 1971’, ‘Santa Martha Acatitla’, ‘Mexico’, ‘Yes’, ‘Joel David Kaplan Carlos Antonio Contreras Castro’]

What actually happened:


["Joel David Kaplan was a New York businessman who had been arrested for murder in 1962 in Mexico City and was incarcerated at the Santa Martha Acatitla prison in the Iztapalapa borough of Mexico City. Joel's sister, Judy Kaplan, arranged the means to help Kaplan escape, and on August 19, 1971, a helicopter landed in the prison yard. The guards mistakenly thought this was an official visit. In two minutes, Kaplan and his cellmate Carlos Antonio Contreras, a Venezuelan counterfeiter, were able to board the craft and were piloted away, before any shots were fired.[9] Both men were flown to Texas and then different planes flew Kaplan to California and Castro to Guatemala.[3] The Mexican government never initiated extradition proceedings against Kaplan.[9] The escape is told in a book, The 10-Second Jailbreak: The Helicopter Escape of Joel David Kaplan.[4] It also inspired the 1975 action movie Breakout, which starred Charles Bronson and Robert Duvall.[9", 'On October 31, 1973 an IRA member hijacked a helicopter and forced the pilot to land in the exercise yard of Dublin\'s Mountjoy Jail\'s D Wing at 3:40\xa0p.m., October 31, 1973. Three members of the IRA were able to escape: JB O\'Hagan, Seamus Twomey and Kevin Mallon. Another prisoner who also was in the prison was quoted as saying, "One shamefaced screw apologised to the governor and said he thought it was the new Minister for Defence (Paddy Donegan) arriving. I told him it was our Minister of Defence leaving." The Mountjoy helicopter escape became Republican lore and was immortalized by "The Helicopter Song", which contains the lines "It\'s up like a bird and over the city. There\'s three men a\'missing I heard the warder say".[1', "43-year-old Barbara Ann Oswald hijacked a Saint Louis-based charter helicopter and forced the pilot to land in the yard at USP Marion. While landing the aircraft, the pilot, Allen Barklage, who was a Vietnam War veteran, struggled with Oswald and managed to wrestle the gun away from her. Barklage then shot and killed Oswald, thwarting the escape.[10] A few months later Oswald's daughter hijacked TWA Flight 541 in an effort to free Trapnell"]

You didn’t share a link to the relevant screen, so it’s harder for people to see what’s being asked and what can be done about it, but the -1 in row[0: -1] looks off, from what I recall.

I’ll share the link screen now and see if that’ll help.

Thank you very much. But I need to ask, why is the space important?

The space is not important at all. Do you have any reason to believe it is other than me having included one?

I got the result that I expected after I included the space.

Sorry for the late response. That’s not supposed to happen. My guess is that you were a victim of Jupyter’s “state”. You’ll get a chance to learn about it in a later course.