-
Notifications
You must be signed in to change notification settings - Fork 25
Formative feedback #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
| output_string = output_string + str(counter) + ". " + task | ||
| counter = counter + 1 | ||
| #Code from Gemini | ||
| my_string = '1. Item 1\n2. Item 2\n3. Item 3\n4. Item 4\n5. Item 5\n' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
almost; you have output_string correct, so this line should be removed and the line below is output_string[:-1], or better yet output_string.rstrip()
| Input - a task to add to the list | ||
| Return - nothing | ||
| """ | ||
| with open(TASK_FILE, "a", encoding="utf-8") as file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
perfect
|
|
||
| #Adding a new task to the end of the to-do list | ||
|
|
||
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try not to add additional whitespace in a function which is not the subject of the commit. Keep commits clean and use git diff to see what will change in each file.
| tasks = file.readlines() | ||
| """Function: remove_task | ||
| Input - a task to add to the list |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Super! Some errors in the syntax here, with a random else. The if accompanying this has gone awol...
| print(tasks) | ||
| elif args.remove: | ||
| remove_task(int(args.remove)) | ||
| try: remove_task(int(args.remove)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good attempt at this!
|
@kwl520 Nice work! Despite our conversation yesterday I think you get more than you think! Sure, there are somethings that aren't working, but you're not far off a finished product here. |
good effort! Almost there on all of this, with some minor errors which would not take long to fix. There are a few test failures, which you're probably aware of.
What you did well:
To improve: