At Springboard, we know how to get you a job in data science. With Springboard’s Data Science Career Track, you’ll master data science with a curriculum built by industry experts. You’ll work on real projects, and get 1-on-1 mentorship from a data scientist.

open the file

totlines = 0; totchars = 0; fchars = 0; occurences[ all ] = 0;

while it isnt end of file:

read character, say c; add one to totchars;

if c is EOL, addd one to totlines

if c is 0..9 then add one tot figurechars

add one to occurrences[ c ];