Python · Functions

Break it into functions

A long program is easier to write and to fix as a few small functions that each do one job you can test.