#๐ Anyone able to help me debug my.. very messy code? I'm sort of in over my head on this
16 messages ยท Page 1 of 1 (latest)
@graceful gorge
Remember to:
- Ask your Python question, not if you can ask or if there's an expert who can help.
- Show a code sample as text (rather than a screenshot) and the error message, if you've got one.
- Explain what you expect to happen and what actually happens.
:warning: Do not pip install anything that isn't related to your question, especially if asked to over DMs.
Show the code and the errors
Theres quite a lot of it, and some of these aren't overt errors, but they're just not working as inteded
Ill send though
!paste
If your code is too long to fit in a codeblock in Discord, you can paste your code here:
https://paste.pythondiscord.com/
After pasting your code, save it by clicking the Paste! button in the bottom left, or by pressing CTRL + S. After doing that, you will be navigated to the new paste's page. Copy the URL and post it here so others can see it.
ah thanks
I guess starting with one issue, the most glaring one i'm having right now is that my sort_list() just is nottt doing what I want it to, but i have no idea why
My class has an autograder that runs a few test cases
TEST 8: Checking sort_list() works correctly. (0/10)
Test 8: Checking sort_list()...
Input string: today
file
example_list2.txt
sort
today
done
Expect to find
########################################
TO-DO TODAY:
Grade Assignment #2!!
Answer Forums questions
Create demo videos
Write paper--
[x]Create Assignment #3
[x]Grade Tutorial #5!!
########################################
Your output:
Choose a list to create. [Options: Today, Someday]: Are you creating this list from a file, or manually? From which file are you creating the list? Thank you for creating a to-do list!
Here is your Today list with the new items:
########################################
TO-DO TODAY:
[x]Create Assignment #3
Grade Assignment #2!!
Write paper--
[x]Grade Tutorial #5!!
Answer Forums questions
Create demo videos
########################################
Thank you for creating your to-do list!
Options: add, completed, create, done, edit, export, prioritize, remove, sort, view, quit
Which list would you like to sort? [Options: Today, Someday, Completed]: Unexpected item type: <class 'list'>
Options: add, completed, create, done, edit, export, prioritize, remove, sort, view, quit
Test 8 failed: list not sorted properly.
This is like one of 5 issues I'm having but I guess I should start somewhere
anyone ? ๐
This help channel has been closed and it's no longer possible to send messages here. If your question wasn't answered, feel free to create a new post in #1035199133436354600. To maximize your chances of getting a response, check out this guide on asking good questions.
๐ Anyone able to help me debug my.. very messy code? I'm sort of in over my head on this