PYTHON PROGRAMMING

AI Coding: Is Google Bard a Good Python Developer?

How does Google Bard handle Python coding tasks?

Marcin Kozak
Towards Data Science
19 min readNov 9, 2023

--

Photo by Markus Spiske on Unsplash

These days, the data science community — and in fact, the whole world — is talking a lot about about large language models (LLMs). Probably the most well-known example is ChatGPT, which more specifically is an LLM-based chatbot developed by OpenAI. ChatGPT is known among developers to offer a powerful help related to coding.

Bard, a Google AI experiment, is an example of a LLM. Today, I’d like to discuss with you whether Bard can be considered helpful thanks to its coding abilities.

Before even starting writing this article, I’ve talked to Bard quite a lot, and many of our conversations were related to Python coding. They led me to think that if one doesn’t know too much about Python, Bard would not be a good teacher. Its¹ replies helped me a lot, but I quickly noticed that I had to be careful when talking to it: many of its replies were misleading, difficult to understand, or even incorrect. So, while it indeed helped me answer some Python questions, it was rather clear to me that Bard was not ready to teach Python beginners, not yet.

These were my thoughts, but I decided to perform an experiment on its coding abilities. This article aims to…

--

--

A full professor, interdisciplinary researcher, data scientist, statistician, Python, R and Go developer, open-source contributor — and a devoted writer