Hello Bhargav,
There is no such a rule for increasing knowledge for coding however, practicing is the key. Take real life problems and try to implement them in coding, you can watch YouTube videos ( they provide great help),take courses on the desired language you intend to learn.
You can practice coding online also,there are so many platforms provided you can search on Google. Basically, you need to practice a lot, that's the only best way that will help you in improving coding language.
I hope this helps
Regular exam updates, QnA, Predictors, College Applications & E-books now on your Mobile