Editing down code

Trying to figure out how to print first few lines successfully.
Everything after that is fine it seems.