14 Help from AI: Improving our code

In this chapter

  • Erik and Emily ask AI for help
  • AI gives code reviews
  • AI writes comments and explains error messages
  • AI explains itself
  • AI gives other ideas on how to use AI

“Are you ready to get help from AI?” Simon asked Erik and Emily.

“Sure,” Erik answered. “Is there a special AI site for developers?”

“There are several AI tools for developers,” Simon said. “With some of them, you log in to the site and ask for help. You ask for a code review or for code explanations, for example. Other tools can be installed in your editor, and they help you write the code. You’ll try those later, so today let’s start with using a website. I have an account at ChatGPT—let’s use it.”

Simon opened a web page at https://chat.openai.com ...

Get A Pythonic Adventure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.