Comment on
How does one code by themself?
Depending on your desired level of mastery, practice and consistency alone aren't enough. Self-taught is the slowest, most difficult way to learn and i only recommend it to those who are interested in coding at a hobby level.
If you want to make a career of it, if you want to be a professional, you also need timely (ideally immediate) feedback from a trained expert who can spot errors in your technique and teach you how to effectively conceptualize and approach the problems you're solving.
You need a coach, a mentor, a teacher. Harvard university's CS50 course is free and an excellent way to get access to such experts and other students with similar goals to collaborate with.