def count_to_n(n):
The comment states that the code prints each number on its own line. I believe it should state that all the numbers print on one line.
Thank you for such a great book and code examples.
Peter
Just noticed that countto10func has a similar isssue, I'll leave it to you to check the rest.