Python Projects & Free Books
Python Interview Projects & Free Courses Admin: @Coderfun
إظهار المزيد📈 نظرة تحليلية على قناة تيليجرام Python Projects & Free Books
تُعد قناة Python Projects & Free Books (@pythonfreebootcamp) في القطاع اللغوي الإنكليزية لاعباً نشطاً. يضم المجتمع حالياً 40 940 مشتركاً، محتلاً المرتبة 3 313 في فئة التكنولوجيات والتطبيقات والمرتبة 9 602 في منطقة الهند.
📊 مؤشرات الجمهور والحراك
منذ تأسيسه في невідомо، حقق المشروع نمواً سريعاً وجمع 40 940 مشتركاً.
بحسب آخر البيانات بتاريخ 23 يونيو, 2026، تحافظ القناة على نشاط مستقر. خلال آخر 30 يوماً تغيّر عدد الأعضاء بمقدار 142، وفي آخر 24 ساعة بمقدار -13، مع بقاء الوصول العام مرتفعاً.
- حالة التحقق: غير موثّقة
- معدل التفاعل (ER): يبلغ متوسط تفاعل الجمهور 3.59%. وخلال أول 24 ساعة من النشر يحصد المحتوى عادةً 0.93% من ردود الفعل نسبةً إلى إجمالي المشتركين.
- وصول المنشورات: يحصل كل منشور على متوسط 1 470 مشاهدة. وخلال اليوم الأول يجمع عادةً 380 مشاهدة.
- التفاعلات والاستجابة: يتفاعل الجمهور بانتظام؛ متوسط التفاعلات لكل منشور يبلغ 4.
- الاهتمامات الموضوعية: يركز المحتوى على مواضيع رئيسية مثل learning, analyst, framework, link:-, structure.
📝 الوصف وسياسة المحتوى
يصف المؤلف القناة بأنها مساحة للتعبير عن الآراء الذاتية:
“Python Interview Projects & Free Courses
Admin: @Coderfun”
بفضل وتيرة التحديث المرتفعة (أحدث البيانات بتاريخ 24 يونيو, 2026) تحافظ القناة على حداثتها ومستوى وصول مرتفع. وتُظهر التحليلات تفاعلاً نشطاً من الجمهور، ما يجعلها نقطة تأثير مهمة ضمن فئة التكنولوجيات والتطبيقات.
items = [1, 2, 2, 3, 4]
for item in items:
if item == 2:
items.remove(item)
print(items)
# Output: [1, 2, 3, 4]
It seems that all 2s should disappear, but one remains. ❓ Why?
After removing an element, the list shifts, but the loop moves on — as a result, some values are simply skipped. 🔄🚫
How to do it correctly — iterate over a copy: ✅
for item in items[:]:
if item == 2:
items.remove(item)
print(items)
# Output: [1, 3, 4]
Even better — use list comprehension: 🚀
items = [x for x in items if x != 2]
Conclusion: 🏁 do not modify a collection during iteration. This can lead to skipped elements, duplication, or even errors during execution. 🛠️🚧
#Python #Coding #Programming #Debugging #TechTips #PythonTipsif obj == None, use if obj is None
In Python, when you write:
obj == None
you're not directly checking if obj is the value None. Instead, you're asking if the object is equal to None.
Yes, in many cases, the result will be the same as for the code:
obj is None
But the behavior of these two variants is different, and this difference is important.
When you use:
obj == None
Python calls the __eq__ method on the object. That is, the object itself decides what it means to be "equal to None". And this method can be overridden.
If obj is an instance of a class in which __eq__ is implemented so that when compared with None, it returns True (even if the object is not actually None), then obj == None may mistakenly give True.
Example:
class Weird:
def __eq__(self, other):
return True # Always asserts that it's equal
obj = Weird()
print(obj == None) # True
print(obj is None) # False
Here, it can be seen that obj == None returns True due to the custom behaeqf the __eq__ operator in the class.
Therefore, when using obj == None, the result is not always predictable.
On the other hand, when you write:
obj is None
you're using the is operator, which cannot be overridden. This means that the result will always be the same and predictable.
The is operator checks the identity of objects, that is, whether two references point to the same object. Since None is a singleton (the only instance), obj is None is the correct and most efficient way to perform such a check.
❤️ Therefore, it is always recommended, and this is best practice, to use obj is None instead of obj == None for predictability and efficiency.
👉 https://t.me/DataScienceQdef first_duplicate(lst):
seen = set()
for x in lst:
if x in seen:
return x
seen.add(x)
return None
print(first_duplicate([3, 1, 3, 4, 2])) # Output: 3
2️⃣ Q: Check whether a number is a palindrome.
def is_pal_num(n):
return str(n) == str(n)[::-1]
print(is_pal_num(121)) # True
print(is_pal_num(123)) # False
3️⃣ Q: Sort a dictionary by values.
def sort_by_value(d):
return dict(sorted(d.items(), key=lambda x: x[1]))
print(sort_by_value({'a': 3, 'b': 1, 'c': 2}))
Output: {'b': 1, 'c': 2, 'a': 3}
4️⃣ Q: Return all prime numbers in a given range.
def primes_upto(n):
primes = []
for num in range(2, n + 1):
for i in range(2, int(num**0.5) + 1):
if num % i == 0:
break
else:
primes.append(num)
return primes
print(primes_upto(10)) # [2, 3, 5, 7]
5️⃣ Q: Convert a list of numbers into a string.
def list_to_string(lst):
return "".join(map(str, lst))
print(list_to_string([1, 2, 3])) # Output: 123
💬 Double Tap ❤️ for Part-12
متاح الآن! بحث تيليغرام 2025 — أهم رؤى العام 
