Chat BotsChatGPTPython

Can OpenAI ChatGPT, Google Bard, and Bing AI Chat Write Code (Part 1)

I was curious to know if the chat bots can write code as well as debug code. So, I put OpenAI ChatGPT, Google Bard, and Microsoft Bing AI Chat to the test. The question I asked:

“Write a recursive function in Python that compares two lists of integers and returns the list that has the least total gap between its elements.”

Then I introduced a simple syntax error into the code they provided, and asked if they can fix it. The results may surprise you.

Verified by MonsterInsights