Ren'py is alot like python and there's quite a few ways to utilize it. I personally learned alot of mechanics of it by browsing and making changes in some of my favorite games but I came into it with basics of python. Still not a bad idea to look at examples from others to see how they may have laid their own groundwork. Lab rats by vren has alot of commented segments in the script.rpy file where he tends to explain things and hehas posted a few helpful things on his patreon in regards to how he codes