Python Projects & Resources
Perfect channel to learn Python Programming 🇮🇳 Download Free Books & Courses to master Python Programming - ✅ Free Courses - ✅ Projects - ✅ Pdfs - ✅ Bootcamps - ✅ Notes Admin: @Coderfun
Ko'proq ko'rsatish📈 Telegram kanali Python Projects & Resources analitikasi
Python Projects & Resources (@pythondevelopersindia) Ingliz til segmentidagi kanali faol ishtirokchi. Hozirda hamjamiyat 63 340 obunachidan iborat bo'lib, Texnologiyalar & Aralashmalar toifasida 2 006-o'rinni va Hindiston mintaqasida 5 269-o'rinni egallagan.
📊 Auditoriya ko‘rsatkichlari va dinamika
невідомо sanasidan buyon loyiha tez o‘sib, 63 340 obunachiga ega bo‘ldi.
26 Avgust, 2026 dagi oxirgi ma’lumotlarga ko‘ra kanal barqaror faollikka ega. Oxirgi 30 kunda obunachilar soni 290 ga, so‘nggi 24 soatda esa 3 ga o‘zgardi va umumiy qamrov yuqori darajada qolmoqda.
- Tasdiqlash holati: Tasdiqlanmagan
- Jalb etish (ER): Auditoriya o‘rtacha 7.11% darajada jalb etiladi. Nashrdan keyingi dastlabki 24 soatda kontent odatda umumiy obunachilar sonining N/A% ini tashkil etuvchi reaksiyalarni to‘playdi.
- Post qamrovi: Har bir post o‘rtacha 4 504 marta ko‘riladi; birinchi sutkada odatda 0 ta ko‘rish yig‘iladi.
- Reaksiyalar va o‘zaro ta’sir: Auditoriya faol: har bir postga o‘rtacha 9 ta reaksiya keladi.
- Tematik yo‘nalishlar: Kontent learning, object, module, string, loop kabi asosiy mavzularga jamlangan.
📝 Tavsif va kontent siyosati
Muallif resursni shaxsiy fikrni ifoda etish maydoni sifatida ta’riflaydi:
“Perfect channel to learn Python Programming 🇮🇳
Download Free Books & Courses to master Python Programming
- ✅ Free Courses
- ✅ Projects
- ✅ Pdfs
- ✅ Bootcamps
- ✅ Notes
Admin: @Coderfun”
Yuqori yangilanish chastotasi (oxirgi ma’lumot 27 Avgust, 2026 da olingan) sababli kanal doimo dolzarb va katta qamrovli bo‘lib qoladi. Analitika auditoriya kontent bilan faol hamkorlik qilishini, uni Texnologiyalar & Aralashmalar toifasidagi muhim ta’sir nuqtasiga aylantirishini ko‘rsatadi.
num = 10
print(num / 0)
❌ Output → ZeroDivisionError
💡 Without exception handling, the program stops immediately when an error occurs.
1. Basic Syntax:
› Use try and except to handle errors.
try:
num = 10 / 0
except ZeroDivisionError:
print("Cannot divide by zero")
✔ Output → Cannot divide by zero
2. Catch Any Exception:
Use Exception to handle all types of errors.
try:
number = int("Hello")
except Exception:
print("Something went wrong")
✔ Output → Something went wrong
3. Catch Multiple Exceptions:
try:
num = int(input("Enter a number: "))
print(10 / num)
except ValueError:
print("Invalid number")
except ZeroDivisionError:
print("Cannot divide by zero")
💡 Different errors can be handled separately.
4. Using else:
The else block runs only if no exception occurs.
try:
num = 10 / 2
except ZeroDivisionError:
print("Error")
else:
print("Division Successful")
✔ Output → Division Successful
5. Using finally:
The finally block always executes, whether an exception occurs or not.
try:
print(10 / 2)
except ZeroDivisionError:
print("Error")
finally:
print("Program Finished")
✔ Output →
5.0
Program Finished
💡 Commonly used to close files or database connections.
6. Using raise:
Manually raise an exception.
age = -5
if age < 0:
raise ValueError("Age cannot be negative")
✔ Output → ValueError: Age cannot be negative
7. Get the Error Message:
try:
print(10 / 0)
except Exception as e:
print(e)
✔ Output → division by zero
💡 e stores the actual error message.
8. Nested Exception Handling:
try:
try:
print(10 / 0)
except ZeroDivisionError:
print("Inner Exception")
except:
print("Outer Exception")
✔ Output → Inner Exception
9. Common Python Exceptions:
✔ ZeroDivisionError → Dividing by zero: 10 / 0
✔ ValueError → Invalid value: int("Hello")
✔ TypeError → Invalid data type: 10 + "20"
✔ IndexError → Invalid list index:
nums = [1, 2]
print(nums[5])
✔ KeyError → Missing dictionary key:
student = {"name": "Alex"}
print(student["age"])
✔ FileNotFoundError → File doesn't exist: open("data.txt")
10. Practice Examples:
✔ Handle invalid input
try:
age = int(input("Enter age: "))
print(age)
except ValueError:
print("Please enter a valid number")
✔ Handle list index error
try:
nums = [10, 20]
print(nums[5])
except IndexError:
print("Index out of range")
✔ Handle dictionary key error
try:
student = {"name": "Alex"}
print(student["age"])
except KeyError:
print("Key not found")
💡 Exception handling makes your programs more reliable by preventing unexpected crashes and providing meaningful error messages.
💬 Tap ❤️ if this helped you!print(student.values())
✔ Add a new key
student["country"] = "India"
print(student)
✔ Update a value
student["age"] = 23
print(student)
💡 Dictionaries are one of the most powerful data structures in Python and are widely used to store structured data like JSON, APIs, and database records.
💬 Tap ❤️ if this helped you learn Python faster!
-----
1.32 ₽ · /balance_helpstudent = {
"name": "Alex",
"age": 22,
"city": "Mumbai"
}
1. Basic Syntax:
› Dictionaries use curly braces {}.
› Each item consists of a key: value pair.
person = {
"name": "John",
"age": 25
}
💡 Keys must be unique, but values can be duplicated.
2. Access Dictionary Values:
Access values using their keys.
student = {
"name": "Alex",
"age": 22
}
print(student["name"])
print(student["age"])
✔ Output
Alex
22
3. Using get() Method:
Safely access a value without getting an error if the key doesn't exist.
student = {
"name": "Alex",
"age": 22
}
print(student.get("name"))
✔ Output
Alex
💡 If the key doesn't exist, get() returns None by default.
4. Change Dictionary Values:
student = {
"name": "Alex",
"age": 22
}
student["age"] = 23
print(student)
✔ Output
{'name': 'Alex', 'age': 23}
5. Add New Items:
student = {
"name": "Alex"
}
student["city"] = "Mumbai"
print(student)
✔ Output
{'name': 'Alex', 'city': 'Mumbai'}
6. Remove Items:
Using pop()
student.pop("age")
Using del
del student["city"]
Remove all items
student.clear()
7. Dictionary Length:
student = {
"name": "Alex",
"age": 22
}
print(len(student))
✔ Output
2
8. Loop Through a Dictionary:
Loop through keys
for key in student:
print(key)
✔ Output
name
age
Loop through values
for value in student.values():
print(value)
✔ Output
Alex
22
Loop through key-value pairs
for key, value in student.items():
print(key, value)
✔ Output
name Alex
age 22
9. Check if a Key Exists:
student = {
"name": "Alex",
"age": 22
}
print("name" in student)
✔ Output
True
10. Common Dictionary Methods:
✔ keys() → Returns all keys
print(student.keys())
✔ values() → Returns all values
print(student.values())
✔ items() → Returns key-value pairs
print(student.items())
✔ update() → Updates dictionary
student.update({"age": 24})
✔ Output
{'name': 'Alex', 'age': 24}
11. Nested Dictionaries:
students = {
"student1": {
"name": "Alex",
"age": 22
},
"student2": {
"name": "John",
"age": 25
}
}
print(students["student1"]["name"])
✔ Output
Alex
12. Practice Examples:
✔ Print all keys
student = {
"name": "Alex",
"age": 22
}
print(student.keys())name = "Python"
message = 'Hello World'
1. Basic Syntax
Strings can be created using single or double quotes.
name = "Alex"
city = 'Mumbai'
Both are valid strings.
2. Access Characters using Indexing
Each character has an index starting from 0.
text = "Python"
print(text[0])
print(text[3])
Output:
P
h
Negative indexing starts from the end.
print(text[-1])
Output:
n
3. String Slicing
Extract part of a string using slicing.
text = "Python"
print(text[0:3])
print(text[2:6])
Output:
Pyt
thon
4. String Length
Use len() to find the number of characters.
text = "Python"
print(len(text))
Output:
6
5. Convert Case
text = "Python Programming"
print(text.upper())
print(text.lower())
print(text.title())
Output:
PYTHON PROGRAMMING
python programming
Python Programming
6. Remove Spaces
Use strip() to remove leading and trailing spaces.
text = " Python "
print(text.strip())
Output:
Python
7. Replace Text
text = "I love Java"
print(text.replace("Java", "Python"))
Output:
I love Python
8. Split a String
Convert a string into a list.
text = "Python SQL Excel"
print(text.split())
Output:
['Python', 'SQL', 'Excel']
9. Join Strings
Join list elements into a single string.
words = ["Python", "SQL", "Excel"]
print(" | ".join(words))
Output:
Python | SQL | Excel
10. Check String Methods
text = "Python"
print(text.startswith("Py"))
print(text.endswith("on"))
print("th" in text)
Output:
True
True
True
11. String Concatenation
Combine multiple strings using +.
first = "Hello"
second = "World"
print(first + " " + second)
Output:
Hello World
12. f-Strings Recommended
The easiest way to format strings.
name = "Alex"
age = 25
print(f"My name is {name} and I am {age} years old.")
Output:
My name is Alex and I am 25 years old.
Note: f-Strings are faster and more readable than string concatenation.
13. Practice Examples
Reverse a string
text = "Python"
print(text[::-1])
Output:
nohtyP
Count occurrences
text = "banana"
print(text.count("a"))
Output:
3
Find character position
text = "Python"
print(text.find("t"))
Output:
2
Check if string contains a word
text = "I am learning Python"
print("Python" in text)
Output:
True
Note: Strings are one of the most frequently used data types in Python, especially in web development, automation, and data analysis.
💬 Tap ❤️ if this helped you learn Python faster!