Python coding
53 subscribers
24 files
11 links
​A technical hub dedicated to Python programming, web development, and software engineering. Learn core syntax, build full-stack projects, and master backend development.
Download Telegram
Channel created
Channel photo updated
Welcome! This channel is for anyone starting out with Python.
I'm learning too — just sharing what I know and picking up more along the way.
We'll cover the basics step by step, help each other, and have some fun doing it.
One day, we'll grow this into a full community of coders.
No stress. Just learning, curiosity, and progress.
Please open Telegram to view this post
VIEW IN TELEGRAM
Python coding pinned Deleted message
Python coding pinned Deleted message
Python coding
Basic_Python_Intro_Notes.pdf
Introduction to Programming with Python

---

What is Python?

Python is a popular programming language created by Guido van Rossum in 1991.

It is known for:
- Simplicity
- Readability
- Flexibility
- Powerful libraries

Python is beginner-friendly while still being powerful enough for AI, web development, and automation.

---

What is Python Used For?

- Web Development
- Software Development
- Data Science & Mathematics
- Automation & System Scripting

Python works on multiple platforms:
- Windows
- Linux
- Mac
- Raspberry Pi

---

Important Concept: Indentation

Unlike many programming languages that use { }, Python uses indentation (spaces) to define code blocks.

Example:

if 5 > 2:
print("Five is greater than two")

Proper indentation is required in Python.

---

Your First Python Program

print("Hello World")

This prints text to the screen.

---

Reading User Input

Use the input() function to get data from users.

name = input("Please enter your name: ")

print(f"Hi {name}, nice to meet you!")

---

Variables in Python

Variables are containers used to store data.

x = 5
y = "John"

Python automatically detects the data type.

---

Casting

Casting is used to force a variable into a specific data type.

str(3)      # '3'
int(3.8) # 3
float(3) # 3.0

---

Variable Naming Rules

- Must start with a letter or underscore _
- Cannot start with a number
- Can contain letters, numbers, and underscores
- Case-sensitive (age, Age, and AGE are different)
- Cannot use Python keywords like:
- if
- while
- print

---

Naming Conventions

Camel Case:

myVariableName

Pascal Case:

MyVariableName

Snake Case (Recommended in Python):

my_variable_name

---

Built-in Data Types

Python includes several built-in data types:

- Text → str
- Numeric → int, float, complex
- Sequence → list, tuple, range
- Mapping → dict
- Boolean → bool

Check a variable type using type():

print(type(5))

Output:

<class 'int'>

---

Comments in Python

Comments make code easier to understand.

Single-line comment:

# This is a comment

Multi-line comment:

"""
This is a multi-line comment
"""