Skip to main content

Command Palette

Search for a command to run...

My First Step into AI as a Full Stack Developer: Learning Python the Right Way

As a Full Stack Developer, I’m beginning my AI learning journey with Python. This article covers my early learnings around Python basics, virtual envi

Updated
4 min read
My First Step into AI as a Full Stack Developer: Learning Python the Right Way
P

I’m a full-stack developer who enjoys building practical, scalable applications with React.js, Node.js, and Next.js. My journey into open source started with Hacktoberfest 2023, and it opened the door to real collaboration, learning from global contributors, and supporting early developers as they grow.

Since then, I’ve contributed to and mentored in programs like GSSoC’24, SSOC’24, and C4GT’24. As a Google Gen AI Exchange Hackathon ’24 Finalist and a Google Women Techmakers Ambassador, I’ve had the chance to help communities explore AI and build meaningful solutions. I’m also part of the Top 1% mentors on Topmate, where I guide students on open source, career building, and technical growth.

My work has been featured at Times Square NYC, and I’ve spoken on international podcasts about tech, learning, and community. I’ve also written technical content for CoderArmy and continue to share insights through articles and public posts. LinkedIn has recognized my work with seven Top Voice badges as well as Golden Badges in research, critical thinking, teamwork, and interpersonal skills.

I completed my MCA from Chandigarh University in 2023 and continue to stay curious by exploring AI, building new projects, and contributing to developer communities. Whether it’s improving a UI, debugging backend logic, or helping someone with their first pull request, I enjoy learning alongside others.

If you want to collaborate, learn together, or discuss an idea, feel free to reach out at kumaripayal7488@gmail.com

1. What is Programming? (Python explained with a tea example)

Programming is simply giving instructions to a computer so it can do a task for you.

Think of making tea.

You don’t just say “make tea” and walk away. You give step-by-step instructions:

  • Boil water

  • Add tea leaves

  • Add sugar

  • Add milk

  • Boil again

  • Pour into a cup

Programming works the same way.
Python is the language we use to write those instructions so the computer understands them.

The computer doesn’t guess. It follows exactly what you write. That’s why clear instructions matter.

def make_tea():
    print("Boiling water")
    print("Adding tea leaves")
    print("Adding sugar")
    print("Adding milk")
    print("Boiling the tea")
    print("Tea is ready")

make_tea()

Output:

Boiling water
Adding tea leaves
Adding sugar
Adding milk
Boiling the tea
Tea is ready

2. Why Python?

As someone coming from JavaScript and Java, I had a simple question.
Why is Python so popular, especially in AI?

After starting with it, the reasons became very clear.

a) Readable

Python code looks close to plain English.
You spend less time decoding syntax and more time thinking about logic.

b) Productive

You can do more with fewer lines of code.
That makes it great for learning, experimenting, and building quickly.

c) Standard Library (STL)

Python comes with a rich standard library.
Many common tasks are already solved for you. You don’t need to reinvent the wheel.

d) Multi-use

Python is used everywhere:

  • Web development

  • Automation

  • Data analysis

  • Machine learning

  • AI and LLMs

Learning Python once opens many doors.

3. Writing Python Code for the First Time

My first step was very basic, but important.

I created a simple file:

# pythontest.py

import sys

print("Hello, Python!")
print("Python version:", sys.version)

Then I wrote my first lines of Python code and explored importing built-in modules like sys to understand how Python interacts with the system. This small program helped me see how a Python file works, how imports behave, and how Python communicates with the system. For someone coming from JavaScript or Java, the logic feels familiar; only the syntax is different.

4. Virtual Environments: A Must-Have Habit

From the start, I decided to follow best practices and work inside a virtual environment, even for small experiments.

Coming from Node.js, I’m already used to managing dependencies.
Python does the same thing, but with more discipline.

Why virtual environments matter

  • Keeps project dependencies isolated

  • Avoids version conflicts

  • Makes projects reproducible

Common rule

Always work inside a virtual environment.

Ways to create one

  • Traditional venv

  • Modern tools like uv

No matter which tool you use, the idea is the same.
Each project gets its own clean space.

5. Organizing Python Code Like a Pro

As projects grow, file structure becomes very important.

Instead of putting everything in one file, Python encourages structured code using:

  • Modules

  • Packages

A clean structure might look like this:

  • A main file to start the app

  • Separate files for logic

  • Utility folders

  • An __init__.py file to define packages

At this stage, my __init__.py file is empty. Its job is simply to tell Python that this folder is a package.

This makes the code easier to read, test, and maintain.
The structure I learned here is very similar to how we organize backend projects in Node.js.

6. PEP 8 and the Zen of Python

This part really changed how I look at writing code.

PEP 8

PEP 8 is the style guide for Python.

Some simple rules:

  • Use 4 spaces for indentation, never tabs

  • Use meaningful variable names

  • Keep lines clean and readable

  • Use formatters to stay consistent

It’s not about rules for the sake of rules.
It’s about making code easy for humans to read.

The Zen of Python

You can see it by running:

import this

The message is simple but powerful.

The most beautiful code
is the simplest code.

Code should be readable.
Anyone should be able to understand what’s happening.

That, to me, is what “Pythonic” means.

PEP 8 tells you how to write code.
The Zen of Python tells you how to think while writing it.

Closing Thoughts

This chapter marks the beginning of my AI learning journey as a Full Stack Developer.

I’m not leaving web development.
I’m strengthening my foundation so I can build smarter, more meaningful applications in the future.

This is just the start.
More chapters, more learning, and more real projects coming soon.

Documenting my Full Stack → AI journey, step by step.

By Payal Kumari

From Full Stack to AI: Learning in Public

Part 1 of 25

In this series, I share my journey of learning AI and LLM engineering as a Full Stack Developer. From Python basics to real AI apps, this is a learning-in-public series with honest insights from a MERN developer transitioning into AI. By Payal Kumari

Up next

From Full Stack Development to AI : Understanding Python Loops

The Importance of Loops for Transitioning to AI