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.
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.
❓ Questions & Help
If you have any questions about the lessons, PDFs, or Python in general, feel free to ask in this group (https://t.me/python_programming0).
Don't stay stuck — ask and learn 💡🐍
If you have any questions about the lessons, PDFs, or Python in general, feel free to ask in this group (https://t.me/python_programming0).
Don't stay stuck — ask and learn 💡🐍
Telegram
Python programming
Welcome! This group’s 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 ful
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 ful
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
Example:
Proper indentation is required in Python.
---
Your First Python Program
This prints text to the screen.
---
Reading User Input
Use the
---
Variables in Python
Variables are containers used to store data.
Python automatically detects the data type.
---
Casting
Casting is used to force a variable into a specific data type.
---
Variable Naming Rules
- Must start with a letter or underscore
- Cannot start with a number
- Can contain letters, numbers, and underscores
- Case-sensitive (
- Cannot use Python keywords like:
- if
- while
- print
---
Naming Conventions
Camel Case:
Pascal Case:
Snake Case (Recommended in Python):
---
Built-in Data Types
Python includes several built-in data types:
- Text →
- Numeric →
- Sequence →
- Mapping →
- Boolean →
Check a variable type using
Output:
---
Comments in Python
Comments make code easier to understand.
Single-line comment:
Multi-line comment:
---
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
---
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 →
boolCheck 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
"""
