Programming with Mosh, run by Mosh Hamedani, is a name that comes up again and again when people ask where to start learning to code, and for good reason. Mosh has a rare talent for taking a beginner who has never written a line of code and walking them through the fundamentals without ever making them feel stupid, and his Python material in particular is a common and well regarded first step for people who eventually want to get into AI and data work. The free introductory videos on YouTube are substantial in their own right and, crucially, they let you sample his calm, methodical teaching style before you commit any money, which I always think is the right way to choose an instructor. The production is polished, the explanations are unhurried, and the structure is logical, so you rarely feel lost.
What you have to be clear eyed about is scope. This is a general programming resource, not an AI one, and the courses deliberately stay at the foundational level of Python syntax, control flow, functions, and the basics of building small programs, with none of the pandas, NumPy, scikit learn, or machine learning content that a data career actually requires. The full courses sit behind a paid membership, and while it is reasonably priced, the genuinely useful depth is on the paid side rather than the free videos. You will also outgrow this material relatively quickly, which is a compliment as much as a criticism, because a good foundation course should get you standing on your own feet and then hand you off to something more advanced.
The wider catalogue spans web and app development too, so only a slice of it is directly on your AI path. My honest take is that Mosh is close to ideal for one specific job, taking a nervous beginner and turning them into someone comfortable writing Python. Do that here, enjoy how clearly it is taught, and then graduate to a dedicated data science or machine learning course, because this is the on ramp, not the destination.