Python

Split Lines and Columns

Parsing CSV Data

CSV (Comma-Separated Values) data can be parsed from strings by splitting on newlines and commas.

Your Task

Parse the provided CSV text and:

  • Extract the header row into a list
  • Count the number of data rows
  • Print header and row count
script.py
Loading PYTHON engine...
Downloading Python… (one-time, ~10 MB)

Downloading Python… (one-time, ~10 MB)

This runs entirely in your browser and is cached for next time.