Ai Coding Tools

How to Use GitHub Copilot to Write Your First 10 Scripts in Under 2 Hours

By BTW Team4 min read

How to Use GitHub Copilot to Write Your First 10 Scripts in Under 2 Hours

If you're new to coding and feeling overwhelmed, you're not alone. I've been there—staring at a blank screen, wondering how to turn my ideas into functional scripts. Enter GitHub Copilot, an AI-powered coding assistant that claims to help you write code faster. In this guide, I'll show you how to leverage Copilot to create your first 10 scripts in under 2 hours.

Time Estimate: 2 Hours

You can finish this in about 2 hours if you follow along and have a basic understanding of programming concepts. Let’s dive in!

Prerequisites

  • GitHub Account: Sign up for a free account if you don’t have one.
  • Visual Studio Code: Download and install VS Code, which is a free code editor.
  • GitHub Copilot Subscription: Copilot costs $10/month or $100/year after a free trial.

Step 1: Set Up GitHub Copilot

  1. Install the GitHub Copilot Extension:

    • Open Visual Studio Code.
    • Go to the Extensions view (Ctrl+Shift+X).
    • Search for "GitHub Copilot" and install it.
  2. Sign In:

    • After installation, sign in with your GitHub account and authorize Copilot.
  3. Enable Copilot:

    • Make sure Copilot is enabled in the settings (File > Preferences > Settings > Extensions > GitHub Copilot).

Step 2: Write Your First Script

Here's how to write your first script using Copilot:

  1. Create a New File:

    • Open a new file in VS Code and save it with the .py extension for Python scripts.
  2. Start Typing a Comment:

    • For example, type # Script to calculate the sum of two numbers and hit enter.
  3. Let Copilot Suggest:

    • After your comment, start typing def sum_numbers(a, b): and see how Copilot suggests a complete function. Accept the suggestion (Tab key).
  4. Test the Script:

    • Run your script to ensure it works.

Step 3: Repeat for 9 More Scripts

Here are nine more script ideas to try with Copilot:

  1. Basic Calculator: # Script to perform basic arithmetic operations
  2. To-Do List: # Script to manage a simple to-do list
  3. Weather Fetcher: # Script to fetch weather data from an API
  4. Web Scraper: # Script to scrape data from a webpage
  5. File Organizer: # Script to organize files in a directory
  6. Password Generator: # Script to generate random passwords
  7. Simple Game: # Script to create a simple text-based game
  8. Data Visualizer: # Script to visualize data using matplotlib
  9. Email Sender: # Script to send emails using SMTP

Expected Outputs

For each script, you should see Copilot generating code snippets that you can run and modify.

Troubleshooting Section

What could go wrong:

  • Copilot doesn’t suggest anything: Make sure you’re typing contextually relevant comments or code.
  • Code doesn’t run: Check for syntax errors or missing libraries.

What’s Next?

Once you’ve created your first 10 scripts, consider:

  • Improving Your Scripts: Refactor the code to make it cleaner.
  • Learning More: Explore additional online resources or take a course on Python.

Pricing Breakdown

| Tool | Pricing | Best For | Limitations | Our Take | |----------------|----------------------------|-----------------------------------|--------------------------------------|---------------------------------------| | GitHub Copilot | $10/mo, $100/yr (free trial)| Beginners looking to code faster | Limited to supported languages only | Essential for speeding up coding | | Visual Studio Code | Free | Code editing | Requires extensions for more features| Our go-to code editor | | Python | Free | General scripting | Performance for large applications | Perfect for beginners | | Postman | Free tier + $12/mo pro | API testing | Free tier has limited features | We use this for API testing | | Jupyter Notebook| Free | Data science | Not ideal for production environments | Great for learning and prototyping |

Conclusion: Start Here

If you're a beginner looking to write scripts quickly, start by setting up GitHub Copilot. In two hours, you can create multiple scripts and gain confidence in your coding abilities. Remember, the key is to keep experimenting and learning as you go.

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 Great Debate: Cursor vs. Codeium - Which AI Tool is Worth Your Time?

The Great Debate: Cursor vs. Codeium Which AI Tool is Worth Your Time? In the rapidly evolving landscape of AI coding tools in 2026, two names have emerged as frontrunners: Cursor

Aug 8, 20263 min read
Ai Coding Tools

How to Use Cursor to Automate Your Development Tasks in 1 Hour

How to Use Cursor to Automate Your Development Tasks in 1 Hour As indie hackers and solo founders, we often find ourselves drowning in repetitive tasks that eat up our precious dev

Aug 8, 20263 min read
Ai Coding Tools

How to Maximize Productivity with GitHub Copilot in Under 60 Minutes

How to Maximize Productivity with GitHub Copilot in Under 60 Minutes If you're like me, you've probably spent countless hours wrestling with code, trying to remember syntax, or fig

Aug 8, 20264 min read
Ai Coding Tools

Cursor vs Codeium for AI-Assisted Coding: Which is Better for Expert Developers in 2026?

Cursor vs Codeium for AIAssisted Coding: Which is Better for Expert Developers in 2026? As an expert developer, you know that the right tools can make or break your productivity. I

Aug 7, 20264 min read
Ai Coding Tools

How to Use GitHub Copilot Effectively to Improve Your Coding in 30 Minutes

How to Use GitHub Copilot Effectively to Improve Your Coding in 30 Minutes Have you ever found yourself staring at a blank screen, unsure of how to start coding a new feature? You’

Aug 7, 20263 min read
Ai Coding Tools

Cursor AI vs Codeium: Which Is the Best AI Pair Programmer in 2026?

Cursor AI vs Codeium: Which Is the Best AI Pair Programmer in 2026? As indie hackers and solo founders, we often find ourselves searching for tools that genuinely enhance our codin

Aug 7, 20263 min read