C2 W1 problem on creating the split function

In the split function, I am unable to code the logic behind splitting into train and validation set, as I am not very familiar with the os module I am having difficulties, and I don’t want to opt for any generative ai tools for the assignment. If anyone our there can help me then it will be highly appreciated.

Hello @Samriddha_Basu ,

Welcome to the community!!

Read the hints twice and try to code whatever you can. Feel free to give it a try, no harm in getting it wrong in 1st time.

Then send me your notebook via dm such that I can check where it went wrong or get stuck, and I will follow up with you.

(By clicking on the profile picture, you will see an option to message. There you can attach your notebook. Then we can discuss the issues here.)

With regards,
Nilosree Sengupta