---
title: "Translate old scripts to a new language · Lenexa Learn"
description: "One developer used ChatGPT and Gemini to translate 20 years of Python scripts into Go, one script at a time."
url: https://www.lenexa.ai/learn/use-cases/translate-old-scripts-to-a-new-language/
site: "Lenexa Learn"
---

Software & DevOps

# Translate old scripts to a new language

One developer used ChatGPT and Gemini to translate 20 years of Python scripts into Go, one script at a time.

## Steps

1. Translate one script at a time.
2. Check the outputs match.
3. Keep the originals.

## Prompt you can copy

```
Translate this [language] script to [language], keeping the same behavior. Note anything that doesn't translate cleanly.
```

## Tools

- ChatGPT
- Gemini

For Developers. Added October 12, 2026.

## Source

[hn](https://news.ycombinator.com/item?id=40161286) · April 2024

## Related use cases

Software & DevOps

### [Build a small desktop app to send files to a CNC machine](https://www.lenexa.ai/learn/use-cases/build-a-small-desktop-app-to-send-files-to-a-cnc-machine/)

A hobbyist asked Gemini Pro for a Python Qt app that sends g-code files to a CNC machine or laser cutter, and it runs on Windows, Mac, and Linux.

**Caution.** Test machine tools carefully.

Developers, Trades Gemini

Software & DevOps

### [Build an app prototype from your database schema](https://www.lenexa.ai/learn/use-cases/build-an-app-prototype-from-your-database-schema/)

One builder had ChatGPT turn their database schema into types and sample data, then built the app's screens one at a time in Bolt.

Developers, Small businesses ChatGPT, Bolt

Software & DevOps

### [Build your first Android app](https://www.lenexa.ai/learn/use-cases/build-your-first-android-app/)

With no Kotlin experience, one developer built their first Android app with Gemini.

Developers, Individuals Gemini

The daily email

## Get 5 AI use cases every morning

A short morning email with five things AI can help with, picked for the groups you choose. It's free, we don't sell anything on this list, and every email has an unsubscribe link.
