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.
Hosted by MrX on Thursday, 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: https://archive.org/details/hpr4089
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. https://www.voidspace.org.uk/python/weblog/arch_d7_2009_12_19.shtml#e1138
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 mrxathpr@googlemail.com requesting a copy of the code.
Related links
Wikipedia article about the Raspberry pi
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
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.