Technical requirements
For this chapter, you’ll need the following:
- Access to an LLM/chatbot such as GPT-4 or Gemini, both of which require logins. For GPT-4, you’d need an OpenAI account, and for Gemini, you’d need a Google account.
- A Python IDE such as Spyder, IDLE, PyCharm, Eclipse, or Visual Studio.
- An online interpreter will not be good enough here.
- An HTML interpreter, which can be found at https://htmledit.squarefree.com/, https://onecompiler.com/html, or https://www.w3schools.com/tryit/, or a website editor such as Wix, GoDaddy, or One.com.
- Get the code in this book here: https://github.com/PacktPublishing/Coding-with-ChatGPT-and-other-LLMs/tree/main/Chapter3.
Now, we’ll get into the meat of the chapter by looking at dealing with error codes that you’ll get when you try to run almost all of the scripts or bits of code you write or you get from an LLM. If it’s perfect the first time around, either it’...