2.PNG512×631 1.59 KB

I have images of dogs and cats in the same folder. what I’m trying to do is to set the images like the bottom. is there a sample code that I could try using os path and os rename??
I’m not familiar with this technique. thanks and have a nice day!