#!/usr/bin/env python3 """Count the participants listed in participants.tsv. Run it from this directory with: python3 code.py """ with open("participants.tsv") as f: header = f.readline() rows = [line for line in f if line.strip()] print("columns:", header.strip().split("\t")) print("participants:", len(rows))