Ai Coding Tools

How to Write Your First 100 Lines of Code Using AI-assisted Tools

By BTW Team4 min read

How to Write Your First 100 Lines of Code Using AI-assisted Tools (2026)

Starting your coding journey can feel like stepping into a deep, dark forest. There’s a lot to learn, and it can be overwhelming. But what if I told you that AI-assisted coding tools can help you write your first 100 lines of code with guidance and support? In 2026, these tools have evolved significantly, making it easier for beginners to transform their ideas into functioning code.

Why Use AI-assisted Coding Tools?

Many beginners struggle with syntax, logic, and understanding how to structure their code. AI-assisted tools can act as your co-pilot, providing suggestions, fixing errors, and even writing chunks of code based on your prompts. This not only accelerates your learning but also builds your confidence as you see your code come to life.

Prerequisites for Getting Started

Before diving in, here’s what you’ll need:

  • A computer: Windows, Mac, or Linux will work.
  • An internet connection: Most AI tools require online access.
  • A code editor: Visual Studio Code is a solid choice (it's free!).
  • Basic understanding of programming concepts: Familiarity with variables, loops, and functions will help, but don’t worry if you’re just starting out.

Step-by-Step Guide to Write Your First 100 Lines of Code

Step 1: Choose Your AI Tool

Below is a comparison of popular AI-assisted coding tools that can help you write your first lines of code.

| Tool | Pricing | Best For | Limitations | Our Take | |-------------------|------------------------|---------------------------|--------------------------------------|---------------------------------| | GitHub Copilot | $10/mo, free for students | General coding assistance | Limited support for niche languages | We use this for quick code suggestions. | | Tabnine | Free tier + $12/mo pro | Autocompletion | Less effective with complex logic | Great for speeding up coding. | | Replit | Free tier + $20/mo for teams | Collaborative coding | Limited offline capabilities | Good for team projects. | | Codeium | Free | Beginner-friendly coding | Fewer integrations compared to others| We don't use it as much. | | AI Dungeon | Free + $5/mo for premium | Creative coding exercises | Not ideal for traditional coding | Fun for narrative coding. | | Sourcery | Free, $20/mo for pro | Code improvement | May not work with all frameworks | We find it useful for refactoring. | | CodeGPT | $15/mo | Learning through examples | Limited language support | Good for Python learners. | | Ponicode | $29/mo | Testing code | Focused on unit tests | We don't need this yet. | | Polycoder | Free | Experimental coding | Limited user support | Great for trying new ideas. | | OpenAI Codex | $0-20/mo depending on usage | Versatile coding tasks | Can produce incorrect code | We use this for diverse projects.|

Step 2: Set Up Your Environment

  1. Install Visual Studio Code: Download and install it from here.
  2. Install your chosen AI tool: Follow the instructions for installation and configuration.
  3. Create a new project folder: This is where you’ll keep your code.

Step 3: Start Coding

Now that you have your environment set up, let’s write some code. Here’s an example of how to create a simple program that prints "Hello, World!" in Python:

  1. Open your code editor.
  2. Create a new file called hello.py.
  3. Type the following code:
    print("Hello, World!")
    
  4. Save the file.
  5. Run the code by opening your terminal and typing:
    python hello.py
    

Step 4: Expand Your Code

Now, let’s add more functionality. Use your AI tool to help you:

  1. Ask your AI tool to generate a function that adds two numbers. For instance, in GitHub Copilot, you can type:
    def add(a, b):
    
    and see what it suggests.
  2. Accept the suggestion or modify it as needed.
  3. Test your function by calling it in your main code.

Step 5: Troubleshooting Common Issues

  • Syntax Errors: If your code doesn’t run, check for typos or missing punctuation.
  • Logic Errors: If the output isn’t what you expect, review your logic or ask your AI tool for help.

What's Next?

Once you’ve written your first 100 lines of code, consider expanding your project. You could:

  • Add user input to your program.
  • Create a simple web application using Flask or Django.
  • Explore data visualization with libraries like Matplotlib.

Conclusion: Start Here

To kick off your coding journey, I recommend starting with GitHub Copilot for its versatility and robust suggestions. It’s a great way to learn while you build, and it’s budget-friendly at $10 per month.

As you progress, remember to keep experimenting and asking your AI tool for help. The more you code, the more comfortable you’ll become.

Follow Our Building Journey

Weekly podcast episodes on tools we're testing, products we're shipping, and lessons from building in public.

Subscribe

Never miss an episode

Subscribe to Built This Week for weekly insights on AI tools, product building, and startup lessons from Ryz Labs.

Subscribe
Ai Coding Tools

The $20 AI Code Assistant vs. The $200 Premium Option: Which One Should You Choose?

The $20 AI Code Assistant vs. The $200 Premium Option: Which One Should You Choose? As a solo founder or indie hacker, choosing the right AI coding tool can feel like navigating a

May 7, 20264 min read
Ai Coding Tools

AI Coding Assistants: Cursor vs Codeium - Which One Saves You More Time?

AI Coding Assistants: Cursor vs Codeium Which One Saves You More Time? As a solo founder or indie hacker, time is often your most precious resource. The excitement of building som

May 7, 20264 min read
Ai Coding Tools

Why AI Coding Tools Are Not Always Your Best Friend

Why AI Coding Tools Are Not Always Your Best Friend As a solo founder or indie hacker, the allure of AI coding tools can be hard to resist. After all, who wouldn’t want a virtual a

May 7, 20264 min read
Ai Coding Tools

Bolt.new vs GitHub Copilot: Which AI Tool Offers Better Support in 2026?

Bolt.new vs GitHub Copilot: Which AI Tool Offers Better Support in 2026? As a solo founder or an indie hacker, we often find ourselves wrestling with the balance between efficiency

May 7, 20263 min read
Ai Coding Tools

How to Build Your First Project with Cursor in Just 2 Hours

How to Build Your First Project with Cursor in Just 2 Hours If you’re a beginner looking to build your first project, you might feel overwhelmed by the sheer number of tools and te

May 7, 20263 min read
Ai Coding Tools

How to Use AI Tools to Write Your First Lines of Code in 2 Hours

How to Use AI Tools to Write Your First Lines of Code in 2 Hours Getting started with coding can feel overwhelming, especially if you have no prior experience. You might find yours

May 7, 20264 min read