Ravindra BagaleCourses & study guides Track your progress

Guides · Generative AI

Claude Code for Beginners: Install and First Project (India)

Claude Code is Anthropic's coding agent that runs in your terminal (and also has a desktop app). You install it once, open a project folder, and ask it to explain, fix or test code. Installation itself is free, but Claude Code is not included on the free Claude chat plan — you need Claude Pro (about $20/month, or about $17/month with annual billing), Max, Team/Enterprise, or a Console / API account. This guide shows a Windows install, a Python traceback fix, and a small pytest for a bill calculator, with India-friendly habits (UPI/card billing notes, no secrets in prompts).

Suppose your college assignment folder throws a red traceback and you are tired of copy-pasting files into the browser chat. Install Claude Code, point it at the folder, and keep your API keys out of the prompt. We will do three small jobs you can repeat on any project.

Full course chapter

For how Claude Code compares with Copilot and Cursor, read AI Coding Tools Compared. For Claude chat prices in India, see Claude AI Free vs Pro Price in India.

Related guide

Curious about Google Antigravity after Claude Code? Google Antigravity for Beginners: Agent-First Coding (Simple) is a beginner agent-first coding walkthrough with a tip calculator task.

What you will learn in this guide

  • What Claude Code is (and is not)
  • Install on Windows step by step
  • Fix a Python traceback in a folder
  • Write pytest for a bill calculator
  • Safety rules for keys and data
  • When Pro is worth it

1. Suppose Neha's bill script crashes before the demo

Suppose Neha in Indore wrote bill.py for a shop tip calculator. The night before her demo it prints a traceback. She installs Claude Code on Windows, opens the project folder, pastes only the error text (not her database password), and asks for a fix plus a pytest. She reviews every diff before she says yes.

2. What is Claude Code?

Word Simple meaning
Claude Code Terminal coding agent from Anthropic
Pro / Max Paid Claude plans that include Claude Code access
Working directory The project folder where you start claude
Diff The code change Claude Code wants to make — read it
pytest A common Python test tool
Claude Code first project in five steps Steps from top to bottom: 1 Install on Windows, Official PowerShell install script; 2 Open your project folder, Small practice folder first; 3 Run claude and sign in, Pro Max or API account required; 4 Fix one error with a prompt, Read the diff before you accept; 5 Add a small pytest, Run the tests yourself. 1Install on WindowsOfficial PowerShell install script 2Open your project folderSmall practice folder first 3Run claude and sign inPro Max or API account required 4Fix one error with a promptRead the diff before you accept 5Add a small pytestRun the tests yourself

Figure 1. Claude Code first project in five steps: install on Windows, open your project folder, run claude and sign in with Pro or Max, fix one error with a clear prompt, then add a small pytest and run it yourself.

3. Plans and India notes (checked 23 October 2026)

Plan Claude Code? About price (Anthropic site)
Free Claude chat No $0
Pro Yes About $20 / month, or about $17 / month billed annually
Max Yes (higher limits) From about $100 / month
Console / API Possible with API billing Pay for tokens you use

Prices are shown in USD and can change; tax may appear on your statement. For a fuller Free vs Pro walkthrough see Claude price in India. Official install docs: code.claude.com/docs/en/setup.

4. Worked example 1: install on Windows

  1. On Windows 10/11, open Windows PowerShell (prompt often looks like PS C:\Users\...).
  2. Paste the official installer (from Anthropic docs):
irm https://claude.ai/install.ps1 | iex
  1. Close PowerShell and open a new window. Check:
claude --version
  1. You should see a version number. If Windows says the command is not found, fix PATH using the troubleshooting section on the same docs page.
  2. Optional but useful: install Git for Windows so Claude Code can use its Bash tool more smoothly.
  3. Alternative installs documented by Anthropic include WinGet (winget install Anthropic.ClaudeCode) and a desktop app download — pick one path, do not mix half-finished installs.

Expected output (yours will be similar, not the same): claude --version prints a version. Then run claude inside a project folder and complete browser login with a Pro/Max (or Console) account.

Ravindra Bagale's Tip

Students paste the PowerShell command into CMD and get 'irm' is not recognized. If your prompt has no PS, you are in CMD — either switch to PowerShell or use the CMD install line from the official docs.

5. Worked example 2: fix a Python traceback in a folder

Create a practice folder D:\learn\billdemo with this broken file bill.py:

def total_with_gst(amount, rate_percent):
    # Bug: rate used as fraction without dividing by 100
    return amount + amount * rate_percent

if __name__ == "__main__":
    print(total_with_gst(1000, 18))

Run it yourself first:

Expected wrong idea: people think GST 18% on 1000 should be 1180,
but this function treats 18 as 1800% and prints a huge number.

Then:

  1. cd into the folder and run claude.
  2. Prompt:
Read bill.py. Explain the bug in one short paragraph.
Fix total_with_gst so rate_percent is a percent (18 means 18%).
Do not add network calls. Show me the diff before writing.
  1. Approve the edit only after you understand it.
  2. Run python bill.py again. Sensible output for 1000 at 18% is 1180.0 (or 1180).

Expected output: corrected function using rate_percent / 100, and a clear explanation you could repeat in a viva.

6. Worked example 3: write pytest for the bill calculator

  1. Keep the fixed bill.py. Ask Claude Code:
Add a pytest file test_bill.py with three tests:
- 1000 at 18% -> 1180
- 0 at 18% -> 0
- 100 at 0% -> 100
Do not delete bill.py. Show the diff first.
  1. Install pytest in your venv if needed: pip install pytest.
  2. Run:
pytest -q
  1. All three tests should pass. If one fails, paste only the failure block back into Claude Code.

Expected output:

...
3 passed in 0.XXs

(Exact timing varies.)

7. Safety rules for India students and office laptops

  • Do not paste .env, AWS keys, database passwords or customer CSVs into the prompt.
  • Prefer placeholders like [API_KEY].
  • Review every file change; say no to broad "rewrite the whole repo" requests on day one.
  • On shared college PCs, log out when you finish.
  • Claude Code needs network access; offline labs need a different plan (see the Ollama guide for local models).

8. Beginner mistakes and quick fixes

Mistake What happens Quick fix
Expecting Claude Code on Free chat Login / plan errors Upgrade to Pro or use API
Running install in the wrong shell irm not found Use PowerShell for the ps1 installer
Approving diffs unread Silent logic bugs Read every hunk
Pasting production secrets Key leak Placeholders only
No tests after a "fix" Regression later Add pytest immediately

9. Try at home

Try at home

  1. Install Claude Code on your PC (or read the docs if you are not ready to pay for Pro yet).
  2. Recreate the broken bill.py, fix it with Claude Code, and add pytest.
  3. Write one paragraph in your own words explaining the percent bug — that is what interviews ask.

Recap

In short

  1. Claude Code is a terminal coding agent from Anthropic.
  2. Install on Windows with the official PowerShell script, then claude --version.
  3. Free Claude chat does not include Claude Code — Pro/Max/API does.
  4. Fix one traceback at a time and read the diff.
  5. Lock the fix with pytest.
  6. Never paste secrets; review every change.

Install once, open the folder, fix with a diff you understand, then test. That is Claude Code for beginners.

Compare tools: AI Coding Tools Compared · Claude price: Claude Free vs Pro India · Local models: Run an LLM with Ollama


Ravindra Bagale, trainer: linkedin.com/in/ravindra-bagale. Neha and the bill demo are made up for learning. Install commands and Pro pricing were checked against Anthropic's Claude Code docs and claude.com/pricing on 23 October 2026 and can change.

Frequently asked questions

Is Claude Code free?

The install is free, but using Claude Code requires a paid Claude plan (Pro or Max), a team plan, or API / Console access. The free Claude chat plan is not enough.

How do I install Claude Code on Windows?

In PowerShell run `irm https://claude.ai/install.ps1 | iex`, open a new terminal, then run `claude --version`. Prefer the commands on the official docs if anything looks different on your visit.

Does Claude Code work offline?

It needs network access to Anthropic. For offline experiments, use a local model tool such as Ollama instead.

Will it change my files without asking?

You should review diffs and permissions. Start in a small practice folder, not your only copy of a final-year project.

Pro is in dollars — can I pay from India?

Many Indian cards and some UPI-enabled flows work through Anthropic's checkout, but availability changes. If checkout fails, check Anthropic's help pages or consider API billing — and never buy "cheap Pro accounts" from strangers.

Related: Claude Code in the Terminal (CLI)