Ai Coding Tools

How to Write Your First Program with AI Tools in Under 2 Hours

By BTW Team4 min read

Comparing tools? See the AI tools tested on the show.

In short

An easy-to-follow guide designed for absolute beginners to create their first program using AI coding tools within a two-hour workshop.

If you’ve ever thought about coding but felt overwhelmed by the complexity, you're not alone. Many aspiring developers hesitate to dive in, fearing the steep learning curve. But in 2026, thanks to AI coding tools, you can write your first program in under 2 hours. Yes, it’s possible! I've been there, and I know the struggle. Here’s how you can leverage AI tools to get started.

Prerequisites: What You Need Before You Start

Before we jump into the tools and steps, here’s what you need:

  • A computer: Any modern laptop or desktop will do.
  • An internet connection: Most AI tools run in the cloud.
  • An open mind: Be ready to experiment and learn!

Step-by-Step: Writing Your First Program

Step 1: Choose Your AI Coding Tool

To get started, you need to pick an AI coding tool. Here are some of the best options available in 2026:

| Tool Name | Pricing | Best For | Limitations | Our Take | |--------------------|-------------------------------|----------------------------------|------------------------------------------------|-----------------------------------| | GitHub Copilot | $10/mo, Free tier available | Code suggestions | Limited to supported languages | We use this for quick code hints. | | Replit | Free tier + $20/mo pro | Collaborative coding | Limited offline capabilities | Great for pair programming. | | Codeium | Free | Instant code generation | May not understand complex logic | We use it for simple tasks. | | Tabnine | Free tier + $12/mo pro | Autocompletion | Limited customization options | Useful for speeding up coding. | | ChatGPT | Free tier + $20/mo pro | Conversational coding help | Can generate incorrect code | We use it for explanations. | | DeepCode | Free, $29/mo for teams | Code review | Requires context for best results | We don’t use it much. | | Ponic | Free, $15/mo for advanced | Full project generation | Not suitable for small scripts | We tried it but prefer simpler tools. | | Codex | $0-20/mo depending on usage | Natural language to code | Requires clear prompts for best output | We use it for prototyping. | | Sourcery | Free, $12/mo for pro | Code improvement suggestions | Limited to Python | We don’t use it because we're JavaScript heavy. | | Jupyter Notebook | Free | Data science projects | Not ideal for web apps | We use this for data analysis. |

Step 2: Set Up Your Environment

Once you've chosen a tool, set up your coding environment. For example, if you choose Replit:

  1. Go to Replit.
  2. Create a free account.
  3. Start a new project (choose a language like Python or JavaScript).

Step 3: Start Coding

Now it's time to write your first program. Let’s say you want to create a simple "Hello, World!" program.

  1. Open your AI tool.
  2. Type a prompt like, "Write a simple Hello World program in Python."
  3. Review the code generated by the AI.

You may need to tweak the code slightly, but the AI should give you a solid starting point.

Step 4: Run Your Program

Most AI coding tools allow you to run code directly in the platform. Click the "Run" button. You should see "Hello, World!" printed out in the console. Congratulations, you’ve written your first program!

Step 5: Troubleshooting Common Issues

If something doesn’t work, don’t panic. Here are a few things to check:

  • Syntax Errors: Make sure there are no typos in your code.
  • Language Compatibility: Ensure the code is written in the correct language for your chosen tool.
  • Tool Limitations: Some AI tools might not support certain features. Check the documentation for help.

What's Next: Building on Your First Program

Now that you’ve successfully written your first program, consider these next steps:

  • Expand Your Program: Try adding user input or additional functionality.
  • Explore More Tutorials: Look for beginner coding resources on platforms like Codecademy or freeCodeCamp.
  • Join a Community: Engage with other learners on forums like Stack Overflow or Reddit.

Conclusion: Start Here

If you're keen to write your first program, start by choosing an AI coding tool from the list above. In our experience, Replit is a great starting point due to its collaborative features and ease of use. With just a couple of hours, you can go from zero to your first working program—no prior coding experience necessary.

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools

Watch real AI builds every week

Built This Week is a weekly podcast where Jordan Metzner and Sam Nadler build something real with AI every episode, test new AI tools and talk with founders who build with AI.

See the tools
Ai Coding Tools

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them)

3 AI Coding Tools That Are Overrated (and Why You Should Avoid Them) In the everevolving landscape of AI coding tools, it's easy to get swept up in the hype. As indie hackers and s

Nov 30, 20263 min read
Ai Coding Tools

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026

5 Ways AI Coding Tools Can Accelerate Your MVP Development in 2026 In 2026, the landscape for indie hackers and solo founders has evolved significantly, especially with the advent

Nov 26, 20264 min read
Ai Coding Tools

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026

5 AI Coding Tools That Make Legacy Code Feel Brand New in 2026 If you’re a developer stuck maintaining legacy code, you know the frustration. It’s like navigating a maze blindfolde

Nov 23, 20264 min read
Ai Coding Tools

10 AI Coding Tools That Will Save You Hours of Debugging in 2026

10 AI Coding Tools That Will Save You Hours of Debugging in 2026 Debugging can feel like a neverending cycle of frustration. Whether you're a solo founder or an indie hacker, spend

Nov 18, 20265 min read
Ai Coding Tools

10 Common Mistakes When Using AI Coding Tools for MVP Development

10 Common Mistakes When Using AI Coding Tools for MVP Development As a founder in 2026, you’re likely aware that AI coding tools can significantly speed up the MVP development proc

Nov 16, 20264 min read
Ai Coding Tools

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026

5 AI Coding Myths Every Beginner Developer Should Ditch in 2026 As a beginner developer, you’ve probably come across a ton of buzz surrounding AI coding tools. But with all the hyp

Nov 12, 20263 min read