Online code learning often includes hands-on exercises to practice what you learn and get feedback. Most are self-paced though some run within scheduled timeframes.
See the development info provided by major companies. They tend to presume you have some coding knowledge, but they also have tutorials and other resources.