tutorial Python

First Steps with Python: A Gentle Beginning

Nishat Ara Tasnim ·Apr 21, 2026 ·198 views
First Steps with Python: A Gentle Beginning

Why Python is the best language for beginners, how to set it up, and a small first project — all in one place.

Python is currently one of the most popular programming languages in the world — thanks to its simple, clean syntax. In this article we will take our first steps with Python and, by the end, build a small project too.

Why start with Python?

  • The code reads almost like plain English — friendly for beginners.
  • It is used everywhere — web development, data science, AI, automation.
  • A huge community and countless free resources.

Setting up

Install Python from python.org. Then you can use VS Code for writing code. To check that the installation went fine, type this in the terminal:

python --version

Your first program

See how concise Python is compared to C:

print("Welcome to DCCPS!")

Just one line — no main function or semicolon needed.

Writing Python code

Variables and input

In Python you do not have to declare a variable's type separately — Python figures it out itself:

name = input("Your name: ")
age = int(input("Your age: "))

print(f"Hello {name}! Next year you will be {age + 1}")

Here input() always returns a string, so to use it as a number we convert it with int().

A small project: the number guessing game

Now let's put what we have learned to use and build a fun game where the user guesses a secret number:

import random

secret = random.randint(1, 50)
tries = 0

while True:
    guess = int(input("Pick a number between 1 and 50: "))
    tries += 1

    if guess < secret:
        print("Try a bigger number")
    elif guess > secret:
        print("Try a smaller number")
    else:
        print(f"Congratulations! You won in {tries} tries 🎉")
        break

This little project uses loops, conditions, input, and functions — all together.

Next steps

  1. Learn to work with lists and dictionaries.
  2. Organize your code by writing your own functions.
  3. Build small projects — a calculator, a to-do list, a quiz app.
Building projects is the fastest way to learn. You will make mistakes, but every mistake makes you more skilled.
#Python #beginner #project #Bengali
How did you find this post?

Discussion

0
To join the discussion, comment and react, log in or create an account.

No comments yet — be the first to leave one!