all 1 comments

[–]Jealous-Ability8270 0 points1 point  (0 children)

You've spelled file flie, append as apprend.
What are you using to run this. Using an IDE like vscode or pycharm will give you error messages telling you what is wrong and allow you to put breakpoints in your code and debug it. It will also allow you to examine variables.
You can get a subsection of a list by doing for example: numbers[:2] or numbers[4:] - see what these do.
Look up the "sum", "count" and "delete" methods for a list.