Learn Python through simple, practical examples and real coding ideas. Clear explanations, useful snippets, and hands-on learning for anyone starting or improving their programming skills.
Admin: @HusseinSheikho || @Hussein_Sheikho
Follow @pythonRe to stay updated with the latest ideas and python trends and news
No reviews yet. Be the first to share your experience!
Latest Posts
Learn Python Coding
May 23, 2026, 08:49 AM
π· Photo
Why can't you use mutable default values in constructors?
If you set a list or dictionary as the default value, the object is created once and then reused by all instances.
class User:
def __init__(self, tags=[]):
self.tags = tags
This results in a change in one instance affecting the others:
u1 = User(); u2 = User()
u1.tags.append("x"); print(u2.tags)
default_factory creates a new object each time the constructor is called, eliminating shared state:
field(default_factory=list)
Thus, each instance receives an independent data structure:
User().tags is User().tags
π₯ Using default_factory is an important practice when working with mutable types and prevents hard-to-detect state errors.
π
1,640
10
0
Learn Python Coding
May 23, 2026, 08:49 AM
π₯ Video
π The Algorithms Python β a huge collection of algorithms in Python! π
The repository contains a large number of algorithms and data structures: sorting, graphs, trees, search, dynamic programming, cryptography, and much more. Everything is implemented in pure Python with clear code and a convenient structure. It's perfect for studying algorithms through real examples.
I'll leave a link: GitHub
https://github.com/TheAlgorithms/Python
π
1,460
8
Learn Python Coding
May 23, 2026, 08:49 AM
π· Photo
Unlock Your AI Career
Join our Data Science Full Stack with AI Course β a real-time, project-based online training designed for hands-on mastery.
Core Topics Covered
β’Β Data Science using Python with Generative AI: Build end-to-end data pipelines, from data wrangling to deploying AI models with Python libraries like Pandas, Scikit-learn, and Hugging Face transformers.
β’Β Prompt Engineering: Craft precise prompts to maximize output from models like GPT and Gemini for accurate, creative results.
β’Β AI Agents & Agentic AI: Develop autonomous agents that reason, plan, and act using frameworks like Lang Chain for real-world automation.
Why Choose This Course?
This training emphasizes live sessions, industry projects, and practical skills for immediate job impact, similar to top programs offering 100+ hours of Python-to-AI progression.
Ready to start? Call/WhatsApp: (+91)-7416877757
WhatsApp Link:-
http://wa.me/+917416877757
1,320
Learn Python Coding
May 23, 2026, 08:49 AM
π· Photo
Python Basics Arrays & Loops π
Essential you need to start strong πͺ
π
π Reminder on Python data structures!
For example, a list supports indexing, is mutable, and stores duplicates, while a set stores only unique elements and has no order.
The picture shows a brief summary of the main data types and their properties: order, mutability, duplicates, and indexing.
Save it to remember!
π
1,510
7
Learn Python Coding
May 23, 2026, 08:49 AM
π File
Master Python the Right Way β Without Procrastination. πβ¨
When I first started learning Python, I quickly realized:
You can't master a programming language just by reading syntax or watching tutorials. ππ«
Real growth happens when you practice, build, and solve problems on your own. π π»
That's exactly why I've compiled a collection of Python programs β designed to take you from basics to advanced logic-building. ππ§
What is this collection about? π€
βοΈ Beginner to advanced programs with clear explanations
βοΈ Pattern-based exercises to strengthen core fundamentals
βοΈ Problem-solving programs that sharpen logical thinking
Why is this important? π
You don't just learn "how to code", you start learning "how to think like a programmer". π§ β‘οΈ
This is perfect for: π―
β’ Preparing for technical interviews π€
β’ Participating in coding challenges π
β’ Building real-world Python projects π
5,010
Learn Python Coding
May 23, 2026, 08:49 AM
π· Photo
There's a floating-point number in Python and you need to output it as a percentage - use the % format in the f-string
x = .023
print(f'{x:.2%}')Β # 2.30%
x = .02375
print(f'{x:.2%}')Β # 2.38% -- rounded off!
x = 1.02375
print(f'{x:.2%}')Β # 102.38%
π
1,990
6
Learn Python Coding
May 23, 2026, 08:49 AM
Lesson: Mastering Python Lists: Common Pitfalls and Best Practices π 1. The Peril of Shallow Copies: Understanding References π§ Description: When you assign one list to another using =, you're not creating a new list; you're creating a new reference to theβ¦