If I were you, I would use the ChatGPT to get me some example code of what I was planning to do. It will give you a pathway to start.
Sorry, but this is terrible advice for inexperienced programmers who just started to learn how to code in the correct way. I mean, to receive a meaningful answer from ChatGPT, one should ask it a properly formulated question that takes into account all the subtleties of the programming language of choice. Obviously, a programmer that hasn't yet decided which language to learn can't know all these nuances. If one has no prior experience in programming, one can't notice some shortcomings, inefficiencies, and bugs in the solution that ChatGPT generates, one can't adequately evaluate if it is the most optimal solution to the problem or not a solution at all.
However, ChatGPT is a perfect place to build your personal learning roadmap for quickly familiarizing yourself with the core concepts of any programming language. It is not meant to solve all your problems you enconter during coding, but can become a helpful tool to make you more productive.