Learn Coding
57 subscribers
21 links
Download Telegram
📌 𝗖𝗼𝘂𝗿𝘀𝗲 𝗜𝗻𝗱𝗲𝘅

All lectures in order — bookmark this post

☄️ Python Basics
➡️ Lecture 1 — What is Programming + Setup
➡️ Lecture 2 — Variables & Data Types
➡️ Lecture 3 — Strings & User Input
➡️ Lecture 4 — Conditionals
➡️ Lecture 5 — Loops
➡️ Lecture 6 — Lists & Tuples
➡️ Lecture 7 — Dictionaries & Sets
➡️ Lecture 8 — Functions
➡️ Lecture 9 — Error Handling
➡️ Lecture 10 — Modules & Libraries
➡️ Lecture 11 — File Handling
➡️ Lecture 12 — Object Oriented Programming

☄️ Telegram Bots
➡️ Lecture 13 — How Telegram Bots Work
➡️ Lecture 14 — Your First Bot
➡️ Lecture 15 — Commands & Handlers
➡️ Lecture 16 — Keyboards & Buttons
➡️ Lecture 17 — Conversations & States
➡️ Lecture 18 — Sending Media
➡️ Lecture 19 — Scheduling & Jobs
➡️ Lecture 20 — Aiogram (Production Bots)
➡️ Lecture 21 — Pyrogram & MTProto
➡️ Lecture 22 — Userbots
➡️ Lecture 23 — Databases with Bots
➡️ Lecture 24 — Deploying Your Bot

☄️ Coming Soon
➡️ Web Scraping
➡️ APIs & Automation
➡️ Web Development
➡️ Databases

This index gets updated as new lectures drop 🚀
Please open Telegram to view this post
VIEW IN TELEGRAM
Placeholder
Placeholder
This media is not supported in your browser
VIEW IN TELEGRAM
📚 𝗟𝗲𝗰𝘁𝘂𝗿𝗲 𝟭 — 𝗪𝗵𝗮𝘁 𝗶𝘀 𝗣𝗿𝗼𝗴𝗿𝗮𝗺𝗺𝗶𝗻𝗴?

Before we write a single line of code you need to understand what you are actually doing
Most beginners skip this and get confused later
We are not skipping it

This lecture covers:
➡️ What programming actually is
➡️ Why Python
➡️ What a text editor is
➡️ Installing Python and VS Code
➡️ Running your very first program
Please open Telegram to view this post
VIEW IN TELEGRAM
📌 What is Programming?

A computer is just a very fast, very dumb machine
It does exactly what you tell it — nothing more, nothing less
Programming is just giving the computer those instructions in a language it understands

Think of it like this —
You are the brain, the computer is the hands
Your code tells the hands what to do

That is literally it
Everything else is just learning how to give better instructions
Please open Telegram to view this post
VIEW IN TELEGRAM
📌 Why Python?

There are hundreds of programming languages
We are starting with Python and here is why:

➡️ It reads almost like plain English
➡️ Used everywhere — bots, websites, AI, automation, data science
➡️ Biggest beginner community in the world
➡️ One of the most in demand languages for jobs right now

Compare this:

public class Main {
    public static void main(String[] args) {
        System.out.println("Hello World");
    }
}


```python
print("Hello World")`


Same result
Python just gets out of your way so you can focus on learning to think like a programmer
Please open Telegram to view this post
VIEW IN TELEGRAM
📌 What is a Text Editor?

A text editor is just where you write your code
Think of it like Microsoft Word — but for code instead of essays

We are using VS Code
➡️ It is free
➡️ It is what most professional developers actually use
➡️ It highlights your code so it is easier to read
➡️ It catches mistakes before you even run the code

Download VS Code from: https://code.visualstudio.com
Download Python from: https://python.org

Install both before moving to the next post
Please open Telegram to view this post
VIEW IN TELEGRAM
🚨 Video Reference

Watch this for a visual walkthrough of everything above
It will show you exactly how to install Python and VS Code step by step

Python Full Course 2024 — freeCodeCamp

🔖 Watch from 0:00 to 16:45 only
Stop at 18 minutes — that is enough for this lecture
Please open Telegram to view this post
VIEW IN TELEGRAM
📌 Your First Program

Open VS Code, create a new file called main.py and type this:

print("I am actually doing this")


Now press the Run button or open the terminal and type:

python main.py


You should see this:

I am actually doing this


That is it
You just wrote and ran your first program
You are a programmer now
Please open Telegram to view this post
VIEW IN TELEGRAM
✏️ Lecture 1 Homework

➡️ Install Python and VS Code
➡️ Create a file called main.py
➡️ Write 3 print statements — anything you want

print("My name is Allah")
print("I am learning Python")
print("I will build a Telegram bot")


Run it and screenshot the output

⚠️ Next lecture drops tomorrow — Variables & Data Types
Please open Telegram to view this post
VIEW IN TELEGRAM
This media is not supported in your browser
VIEW IN TELEGRAM
📚 𝗟𝗲𝗰𝘁𝘂𝗿𝗲 𝟮 — 𝗩𝗮𝗿𝗶𝗮𝗯𝗹𝗲𝘀 & 𝗗𝗮𝘁𝗮 𝗧𝘆𝗽𝗲𝘀

You installed Python and ran your first program last lecture
Now we actually start coding

This lecture covers:
➡️ What variables are and how to create them
➡️ Naming rules for variables
➡️ The 4 main data types you need to know
➡️ How to check what type something is
➡️ The most common beginner mistake with types
Please open Telegram to view this post
VIEW IN TELEGRAM
📌 What is a Variable?

Think of your phone contacts list
You save a number under a name so you do not have to remember the actual digits
A variable is the exact same idea

Instead of writing 2500 every time in your code
You save it under a name and use that name instead

salary = 2500
print(salary) # 2500


You can also update it anytime:

salary = 2500
salary = 3000
print(salary) # 3000


That is why it is called a variable — it can vary
Please open Telegram to view this post
VIEW IN TELEGRAM
📌 Rules for Naming Variables

You can name a variable almost anything but there are rules:

✔️ Can start with a letter or underscore
✔️ Can have letters, numbers, and underscores
✔️ Use lowercase with underscores — this is the Python way

Cannot start with a number
Cannot have spaces
Cannot use special characters like @, !, $

Good:
user_name = "Allah"
total_price = 150
is_logged_in = True


Bad:
1name = "Allah"      # starts with number
total price = 150 # has a space
total@price = 150 # special character


Also — always make your names meaningful
x = 150 works but total_price = 150 is 10x easier to read later
Please open Telegram to view this post
VIEW IN TELEGRAM
📌 The 4 Main Data Types

Not everything you store is the same kind of thing
A name is different from a number, a yes/no is different from both
Python has types for each:

1. int — whole numbers
age = 22
followers = 10000


2. float — decimal numbers
price = 9.99
temperature = 36.6


3. str — text
name = "Allah"
message = "Welcome to the channel"

Always wrap text in quotes — single or double both work

4. bool — True or False only
is_online = True
is_banned = False

True and False must start with capital letters
Please open Telegram to view this post
VIEW IN TELEGRAM
📌 Checking What Type Something Is

Python has a built in function called type()
Use it whenever you are not sure what type a variable is

name = "Allah"
age = 69
price = 0.01
is_online = True

print(type(name)) # <class 'str'>
print(type(age)) # <class 'int'>
print(type(price)) # <class 'float'>
print(type(is_online)) # <class 'bool'>


Run this and see what prints
This will save you a lot of confusion when debugging later
Please open Telegram to view this post
VIEW IN TELEGRAM
⚠️ Most Common Beginner Mistake

Mixing types without converting them first

age = 22
print("I am " + age + " years old") # CRASH


This crashes because you cannot combine text and a number directly

Fix it by converting the number to text first:
age = 22
print("I am " + str(age) + " years old") # Works


Or use an f-string — we cover this properly next lecture:
age = 22
print(f"I am {age} years old") # Cleaner
Please open Telegram to view this post
VIEW IN TELEGRAM
🚨 Video Reference

Watch this after reading through all the posts

Python Full Course 2024 — freeCodeCamp

🔖 Watch from 16:45 to 47:44
Covers variables, all data types, and type conversion
Please open Telegram to view this post
VIEW IN TELEGRAM
✏️ Lecture 2 Homework

Create a Python file and store this info about yourself:

name = ""        # your name
age = 0 # your age
height = 0.0 # your height
is_student = True

print(f"Name: {name}")
print(f"Age: {age}")
print(f"Height: {height}")
print(f"Student: {is_student}")
print(f"Types: {type(name)}, {type(age)}, {type(height)}, {type(is_student)}")


Fill in your actual info, run it and screenshot the output
Bonus — add 3 more variables of your choice

⚠️ Next lecture drops in 2 days — Strings & User Input
Please open Telegram to view this post
VIEW IN TELEGRAM