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

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 08:30
When you interpret the behavior of others according to your experiences and understanding of the world your evaluation is
Answers: 1
question
Computers and Technology, 24.06.2019 00:50
Which of the following is not a key player in the sale of travel products?
Answers: 2
question
Computers and Technology, 24.06.2019 01:00
Verify each identity[tex] \frac{csc}{cot \: x \: + \: tan \: x} = cos \: x[/tex]
Answers: 1
question
Computers and Technology, 24.06.2019 08:20
Which type of entity describes a fundamental business aspect of a database? a. linking b. lookup c. domain d. weak
Answers: 3
You know the right answer?
Each article contains a document ID which uniquely identifies the document. This document ID is comp...
Questions
question
Mathematics, 10.03.2021 02:20
question
Mathematics, 10.03.2021 02:20
Questions on the website: 13722363