Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Python help: Using bibfile.txt write a function that would read the first ten li

ID: 3825668 • Letter: P

Question

Python help:

Using bibfile.txt write a function that would read the first ten lines, place them into a file named firstBib.txt. Write the next ten lines into another file named secondBib.txt. Call and test the function.

here is what is in the bibfile.txt

"Barbour. Ian. Ethics in an Age of Technology. NY: Harper Collins. 1993.
Barrett. William. The Death of the Soul: From Descartes to the Computer. NY: Anchor Press. 1986.
Barry. John. Technobabble. Cambridge, MA: MIT Press. 1991.
Benedikt. Michael. Cyberspace: First Steps. Cambridge, MA: MIT Press. 1991.
Beniger. James. The Control Revolution: Technological and Economic Origins of the Information Society. Cambridge, MA: Harvard University Press. 1986.
Bijker. Wiebe. Of Bicycles, Bakelites, and Bulbs: Toward a Theory of Sociotechnical Change. Cambridge, MA: MIT Press. 1991.
Boden. Margaret. The Creative Mind: Myths and Mechanisms. London: Weidenfield and Nicolson. 1990.
Bolt. Richard. The Human Interface. Belmont, CA: Wadsworth. 1987.
Brooks. Frederick. The Mythical Man-Month. Reading, MA: Addison-Wesley. 1975.
Burnham. David. The Rise of the Computer State: The Threat to Our Freedoms, Our Ethics, and Our Democratic Process. NY: Random House. 1980.
Cavazos. Edward. Cyberspace and the Law: Your Rights and Duties in the On-Line World. Cambridge, MA: MIT Press. 1995.
Cooley. Mike. Architect or Bee?: The Human/Technology Relationship. Boston, MA: South End Pres. 1980.
Coyne. Richard. Designing Information Technology in the Information Age: From Method to Metaphor. Cambridge, MA: MIT Press. 1995.
Damasio. Antonio. Descartes' Error: Emotion, Reason, and the Human Brain. NY: Avon Books. 1995.
Davison. Andrew. Humour the Computer. Cambridge, MA: MIT Press. 1995.
Dietrich. Eric. Thinking Computers and Virtual Persons. San Diego, CA: Academic Press. 1994.
Drozdek. Adam. Moral Dimensions of Man in the Computer Age. NY: University of America Press. 1995.
Edwards. Paul. The Closed World: Computers and the Politics of Discourse in Cold War America. Cambridge, MA: MIT Press. 1996.
Ermont. Stephen. Information Superhighways: Multimedia Users and Futures. San Diego, CA: Academic Press. 1994.
Ferre'. Frederick. Philosophy of Technology. Athens, GA: The University of Georgia Press. 1996.
Fitch. Robert. Digital Delusions: The Promise of the Information Age. NY: Common Courage Press. 1995.
Forester. Tom. High-Tech Society: The Story of the Information Technology Revolution. Cambridge, MA: MIT Press. 1987.
Gates. Bill. The Road Ahead. NY: Penguin. 1995.
Gibson. William. Neuromancer. NY: Ace Books. 1984.
Guile. Bruce. Information Technologies and Social Transformation. Washington, DC: National Academy Press. 1985.
Harasim. Linda. Global Networks: Computers and International Communication. Cambridge, MA: MIT Press. 1993.
Inkster. Ian. Science and Technology in History. New Brunswick, NJ: Rutgers University, Press. 1995.
Jonas. Hans. The Imperative of Responsibility: In Search of an Ethics for the Technological Age. Chicago, IL: Chicago Press. 1984.
Kelly. Kevin. Out of Control: The Rise of Neo-Biological Civilization. NY: Addison-Wesley Press. 1994.
Kelly-Bootle. Stan. The Computer Contradictionary. Cambridge, MA: MIT Press. 1981.
Kidder. Tracy. The Soul of a New Machine. Boston, MA: Little Brown. 1981.
Landauer. Thomas K. The Trouble With Computers: Usefulness, Usability and Productivity. Cambridge, MA: MIT Press. 1995.
Lanham. Richard. The Electronic World: Democracy, Technology, and the Arts. Chicago, IL: University of Chicago Press. 1993.
Levy. Steven. Hackers: Heroes of the Computer Revolution. Garden City, NY: Doubleday. 1984.
Levy. Steven. Artificial Life. NY: Vintage Books. 1992.
Lyon. David. The Information Society: Issues and Illusions. NY: Polity Press. 1988.
Ludlow. Peter. High Noon on the Electronic Frontier. Cambridge, MA: MIT Press. 1996.
Masuda. Yoneji. The Information Society as Post Industrial Society. Bethesda, MD: World Future Society. 1983.
Mazlish. Bruce. The Fourth Discontinuity: The Co-Evolution of Humans and Machines. New Haven, CT: Yale University Press. 1995.
Mesthene. Emmanuel. Technological Change: Its Impact on Man and Society. NY: Mentor Books. 1970.
Miller. Steve. Civilizing Cyberspace: Policy, Power and the Information Superhighway. NY: ACM Press. 1995.
Minsky. Marvin. The Society of Mind. NY: Touchstone Books. 1988.
Mitcham. Carl. Thinking Through Technology: The Path between Engineering and Philosophy. Chicago, IL: University of Chicago press. 1994.
Mitchell. William J. City of Bits: Space, Place, and the Infobaun. Cambridge, MA: MIT Press. 1995.
Moore. Dinty W. The Emperor's Virtual Clothes: The Naked Truth About Internet Culture. Chapel Hill, NC Alqonquin Press. 1995.
Mowshowitz. Abbe. The Conquest of Will: Information Processing in Human Affairs. Reading, MA: Addison-Wesley. 1976.
Mumford. Lewis. Technics and Civilization. NY: Harcourt Brace and World. 1963.
Naisbitt. John. Megatrends: Ten New Directions Transforming Our Lives. NY: Warner Books. 1982.
Nauer. Peter. Computing: A Human Activity. NY: ACM Press. 1992.
Nye. David E. American Technological Sublime. Cambridge, MA: MIT Press. 1994.
Penrose. Roger. The Emperor's New Mind: Concerning Computers, Minds, and the Laws of Physics. NY: Penguin Books. 1989.
Pirsig. Robert. Zen and the Art of Motorcycle Maintenance. NY: Morrow. 1974.
Postman. Neil. Technopoly: The Surrender of Culture to Technology. NY: Vintage Books. 1992.
Rheingold. Howard. Virtual Reality. NY: Touchstone Books. 1991.
Rheingold. Howard. The Virtual Community: Homesteading on the Electronic Frontier. NY: HarperPerennial. 1994.
Roszak. Theodore. The Cult of Information. NY: Pantheon. 1986.
Sale. Kirkpatrick. Rebels Against the Future. NY: Addison-Wesley Press. 1995.
Schuler. Doug. New Community Networks. Reading, MA: Addison Wesley. 1995.
Schuurman. Egbert. Technology and the Future: A Philosophical Challenge. Toronto: Wedge Publishing Foundation. 1980.
Sherman. Barrie. The New Revolution: The Impact of Computers on Society. NY: John Wiley. 1985.
Shneiderman. Ben. Software Psychology: Human Factors in Computer and Information Systems. Boston, MA: Little, Brown. 1980.
Slouka. Mark. War of the Worlds: Cyberspace and the High-Tech Assault on Reality. NY: Basic Books. 1995.
Stephens. Charlotte S. The Nature of Information Technology Managerial Work: The Worklife of Five Chief Information Officers. Greenwood Publishing Group. 1981.
Stoll. Clifford. The Cuckoo's Egg: Tracking a Spy Through the Maze of Computer Espionage. NY: Doubleday. 1989.
Stoll. Clifford. Silicon Snake Oil: Second Thoughts About the Information Highway. Cambridge, MA: MIT Press. 1995.
Stone. Allucquere Rosanne. The War of Desire and Technology at the Close of the Mechanical Age. Cambridge, MA: MIT Press. 1995.
Talbott. Steven. The Future Does Not Compute: Transcending the Machines in our Midst. NY: O'Reilly & Associates. 1995.
Toffler. Alvin. The Third Wave. NY: William Morrow. 1980.
Webster. Andrew. Science, Technology, and Society. New Brunswick, NJ: Rutgers University, Press. 1995.
Weinberg. Nathan. Computers in the Information Society. Westview Press. 1990.
Weiner. Norbert. Cybernetics. NY: John Wiley and Sons. 1948.
Weiner. Norbert. The Human Use of Human Beings: Cybernetics and Society. Cambridge, MA: Riverside Press. 1950.
Wessel. Milton. Freedom's Edge: The Computer Threat to Society. Reading MA: Addison-Wesley. 1974.
Winner. Langdon. Autonomous Technology: Technics-out-of-Control as a Theme in Political Thought. Cambridge, MA: MIT Press. 1977.
Zuboff. Shoshana. In the Age of the Smart Machine. NY: Basic Books. 1988."

Explanation / Answer

Python code is here

Content of 1st file is

"Barbour. Ian. Ethics in an Age of Technology. NY: Harper Collins. 1993.

Barrett. William. The Death of the Soul: From Descartes to the Computer. NY: Anchor Press. 1986.

Barry. John. Technobabble. Cambridge, MA: MIT Press. 1991.

Benedikt. Michael. Cyberspace: First Steps. Cambridge, MA: MIT Press. 1991.

Beniger. James. The Control Revolution: Technological and Economic Origins of the Information Society. Cambridge, MA: Harvard University Press. 1986.

Bijker. Wiebe. Of Bicycles, Bakelites, and Bulbs: Toward a Theory of Sociotechnical Change. Cambridge, MA: MIT Press. 1991.

Boden. Margaret. The Creative Mind: Myths and Mechanisms. London: Weidenfield and Nicolson. 1990.

Bolt. Richard. The Human Interface. Belmont, CA: Wadsworth. 1987.

Brooks. Frederick. The Mythical Man-Month. Reading, MA: Addison-Wesley. 1975.

Burnham. David. The Rise of the Computer State: The Threat to Our Freedoms, Our Ethics, and Our Democratic Process. NY: Random House. 1980."

Content of 2nd file is

"

Cavazos. Edward. Cyberspace and the Law: Your Rights and Duties in the On-Line World. Cambridge, MA: MIT Press. 1995.

Cooley. Mike. Architect or Bee?: The Human/Technology Relationship. Boston, MA: South End Pres. 1980.

Coyne. Richard. Designing Information Technology in the Information Age: From Method to Metaphor. Cambridge, MA: MIT Press. 1995.

Damasio. Antonio. Descartes' Error: Emotion, Reason, and the Human Brain. NY: Avon Books. 1995.

Davison. Andrew. Humour the Computer. Cambridge, MA: MIT Press. 1995.

Dietrich. Eric. Thinking Computers and Virtual Persons. San Diego, CA: Academic Press. 1994.

Drozdek. Adam. Moral Dimensions of Man in the Computer Age. NY: University of America Press. 1995.

Edwards. Paul. The Closed World: Computers and the Politics of Discourse in Cold War America. Cambridge, MA: MIT Press. 1996.

Ermont. Stephen. Information Superhighways: Multimedia Users and Futures. San Diego, CA: Academic Press. 1994.

Ferre'. Frederick. Philosophy of Technology. Athens, GA: The University of Georgia Press. 1996."