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.
These sites cost money, though some may have free classes or modules. Access may also include having a personal mentor. Some are subscription-based, where you can access all of their courses for a certain amount of time, while for others you pay by the course.
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.