subject

Each article contains a document ID which uniquely identifies the document. This document ID is comprised of four letters followed by a hyphen, followed by three numbers and optionally ending in a letter. For example, each of the following are valid document IDs: • ABCD-123 • ABCD-123V • XKCD-999A • COMP-200 The document IDs are not located in a consistent place in each article. Use a regular expression to identify the document ID for each document in the dataset. Write a Python program in partb1.py that produces a CSV file called partb1.csv containing the filenames and Document IDs for each document in the dataset. Your CSV file should contain the following columns in the order below:
• filename • documentID Your program should be called from the command line along with the name of the CSV file: python partb1.py partb1.csv

ansver
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 10:00, austintules2005
Whats three fourths of 15(this is supposed to be in math but i clicked too fast)
Answers: 1
image
Computers and Technology, 24.06.2019 07:00, janeliles
Why would a business likely use a java applet - to back up their data files for the business - to create a program that a customer can launch in their web browser - to create music on a powerpoint presentation - to organize files on their company directory
Answers: 3
image
Computers and Technology, 24.06.2019 15:00, bsndb5638
Universal windows platform is designed for which windows 10 version?
Answers: 1
image
Computers and Technology, 24.06.2019 17:30, mikemofun9079
When you type january in a cell, then copy it using the fill handle to the cells below and the data automatically changes to february, march, april, and so on, what is this feature called? auto fill automaticcopy monthfill textfill
Answers: 1
You know the right answer?
Each article contains a document ID which uniquely identifies the document. This document ID is comp...

Questions in other subjects:

Konu
Mathematics, 28.10.2020 16:30