There are many online coding sites and platforms exclusively for practice purpose. According to me the Ideal way of learning is by picking up a problem statement and working on it to build your confidence levels. In StackOverflow website, we can see 100 software developers posting their problems.