This article provides a helpful and practical guide on using ChatGPT to write code. The step-by-step process outlined makes it easy for developers to leverage the power of ChatGPT in their coding projects. The examples provided, such as code completion, documentation generation, and debugging, demonstrate the versatility of this tool. However, it is important to note the limitations of ChatGPT and the need for verification of its generated code. Overall, this article offers valuable insights for programmers looking to improve their coding skills.