Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at

hpr4089 :: Modifying a Python script with some help from ChatGPT

In this episode I describe my experience of fixing some Python code with some help from ChatGPT.

<< First, < Previous, , Latest >>

Hosted by MrX on 2024-04-04 is flagged as Explicit and is released under a CC-BY-SA license.
Programming, Python, AI. (Be the first).
The show is available on the Internet Archive at:

Listen in ogg, spx, or mp3 format. Play now:

Duration: 00:23:13

A Little Bit of Python.

Initially based on the podcast "A Little Bit of Python", by Michael Foord, Andrew Kuchling, Steve Holden, Dr. Brett Cannon and Jesse Noller.

Now the series is open to all.

Below are some links relating to things I discuss in the episode.

Note I haven’t included my actual Python code for fear that it would be in breach of the copyright used by HPR as it is based on the output from ChatGPT.

If you would like a copy of the code then place contact me via email at requesting a copy of the code.

Related links

Wikipedia article about the Raspberry pi

Link to PiFace control and display add on board for the Raspberry pi In my episode I repeatedly incorrectly refer to it as “Command and Display

Wikipedia article about the Python programming language

hpr2344: Follow on to HPR2340 (Tracking the HPR queue in Python)

Link to USB powered LED BlinkStick

Link to new HPR stats page in JSON format

Wikipedia article about the JSON file format

Wikipedia article about the XML file format

hpr3067: Getting my Python3 code working in Python2

Link to the ChatGPT website

Wikipedia article about the R programming language

Article about assigning values to a variable in the R programming language A thought came to mind after recording the show. I suspect the reason that ChatGPT incorrectly described the bit of code in the site my wife found was due to lack of context. It may only have been fed the code without being told specifically that it was R code. Unfortunately I was unable to investigate this further as I was unable to find the original site.


Subscribe to the comments RSS feed.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Anti Spam Question: What does the letter P in HPR stand for?