We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Sum Types Practice

Doc2Doc should be able to prepare and export a CSV file of whatever data you input. CSV (Comma-Separated Values) is a ubiquitous text format that allows for information to be structured in a table. There is usually a header row, followed by data rows. Within rows, items are separated by commas.

Assignment

Complete the get_csv_status function. It should use a match statement to select the correct response depending on the status of the export operation. Create functions to handle each operation as follows:

  1. unknown export status
    

Tip

It's better if you try this challenge without using loops for practice, but you may use loops.