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.

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
- Learn to work with lists and dictionaries.
- Organize your code by writing your own functions.
- 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.
Discussion
0No comments yet — be the first to leave one!