Programming Assignment: Cats vs Dogs - list index out of range

Hi,

My C2W1 assignment was graded as passing, but with grading issues for split_data:

Details of failed tests for split_data

Failed test case: There was an error grading this function. Details shown in ‘got’ value below:.
Expected:
no exceptions,
but got:
list index out of range.

I don’t understand what the issue is. I find only one file of zero size, and not two as the assignment text suggests.

I would be super grateful for any hint!

Here is my code:
{Codes removed by moderator}

hello @Psychopatrik

please avoid posting codes on public post thread. it is against community guidelines. Kindly use edit pin to remove the grader codes.

refer the below comment to solve your issue

regards
DP

Hi DP,

Thank you for your reply and sorry for posting code when not allowed. I had not seen anything about that. In fact, my Coursera assignment page links to some page that does not exist, and there is no further information on how to get help.

As much as I appreciate your answer, I must admit I have no clue what you mean by “Kindly use edit pin to remove the grader codes”. Could you please specify, or link to some more general info page explaining how to get help on assignments?

Again, sorry for not having the basics regarding how to use the forum!

P

No issues @Psychopatrik as you are new learner, you can go to FAQ section on the left hand side, which will guide you to Code of conduct section which mentions what all guidelines one need to follow.

Edit pin is seen when you click on the three dots on the right corner side and you get a :writing_hand:t2: which when you click, can edit your whole comment. For this time, I am removing the codes from your post.

Go through comment I sent in previous comment, let me know if you still require any help.

Keep learning!!!

Regards
DP

2 Likes

Awsome, thanks!