Assignment
🧑💻 This is an individual exercise. It is based on this week's content so you should review that to set you up for the assignment. You are expected to work independently.
If you get stuck, confused, or have trouble with the project, you should use the #help-prog1 channel in Discord or message an instructor. Try not to spoil the project for others - use Discord spoiler tags if you are going to include a screenshot or code sample.
This week's assignment comprises 2 independent exercises which will test your
understanding of how to manipulate files in python. You are required to complete
all of them in order to get full marks. Specific instructions for each exercise are
in the README.md
file within each exercise's folder. The exercises are:
- binary-file-info: Write a program that accepts the name of a binary file from standard input, and prints out the name, size, and type of the file.
- count-file-lines: Write a program that takes in the name of a file as input, then prints out the number of lines in that file. As an option, it can also take in a string to filter the lines. If a string is provided, it should only count the lines that contain that string.
Remember...
- Read the instructions tab in Replit
- Plan before you code
- Debug if you aren't getting the desired output
- Attend office hours if you need additional support
- Ask for help in Discord