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

10 Mistakes New Developers Make When Using AI Tools

10 Mistakes New Developers Make When Using AI Tools As we dive into 2026, AI tools have transformed the coding landscape. But with all the excitement, new developers often stumble

Mar 16, 20264 min read
Ai Coding Tools

How to Use Cursor.ai for Rapid Prototyping in Under 60 Minutes

How to Use Cursor.ai for Rapid Prototyping in Under 60 Minutes In the fastpaced world of building side projects, getting an idea from concept to prototype can feel overwhelming. Ma

Mar 16, 20263 min read
Ai Coding Tools

Why GitHub Copilot is Overrated: Contrarian Perspectives on AI Coding Assistants

Why GitHub Copilot is Overrated: Contrarian Perspectives on AI Coding Assistants As a solo founder or indie hacker, you’re always on the lookout for tools that genuinely boost your

Mar 16, 20264 min read
Ai Coding Tools

How to Build Your First App Using AI Tools in Under 3 Hours

How to Build Your First App Using AI Tools in Under 3 Hours If you're a solo founder or an indie hacker, the thought of building an app might seem daunting. But what if I told you

Mar 16, 20265 min read
Ai Coding Tools

Top 5 AI Tools for Beginners in 2026: Your Launchpad

Top 5 AI Tools for Beginners in 2026: Your Launchpad As a beginner diving into the world of coding in 2026, the landscape is flooded with AI tools promising to make your journey sm

Mar 16, 20264 min read
Ai Coding Tools

Supabase vs Firebase for AI-Driven Projects: A 2026 Comparison

Supabase vs Firebase for AIDriven Projects: A 2026 Comparison As we dive into 2026, the landscape for building AIdriven applications has evolved significantly. If you're an indie h

Mar 16, 20264 min read