Learn how to use ChatGPT to automatically generate Python code. In this video I cover the basics of code generation. I show how it can generate Python code based on natural language input prompts. I further illustrate how you can ask it to rewrite a different version of the Program while maintaining the same functionality. Going on to ask it to compare both versions of the code that it has produced.