Python tips: how to detects duplicate files ? As a folder grows, duplicates start to quietly take up space, especially if you save the same files under different names. A quick method in Python is to calculate the hash of each file and group them into categories based on their hash. This way, you can immediately identify files with identical content, not just by names. #python #pep #algorithms
Philippe Ivan MBARGA’s Post
More Relevant Posts
-
🚀 Day 9 – Python Functions and Recursion 🐍 Today I explored Python Functions and Recursion, focusing on how real problems can be solved step by step. For example: 🔹 Using a function to avoid repeating the same logic again and again 🔹 Using recursion to break a problem into smaller versions of itself—until a base case is reached Seeing how a function can call itself made the logic behind problems like factorials and number series much clearer. It’s not just about writing code anymore, it’s about thinking logically and structuring solutions. 📌 Consistency over speed. Learning with practice. #Python #Day9 #Functions #Recursion
To view or add a comment, sign in
-
-
Strings in Python are sequences of characters used to store and work with text. They support indexing, slicing, concatenation, repetition, and many useful methods. An important concept to remember: Strings are immutable — once created, their characters cannot be changed directly. Any modification creates a new string. #Python #StringsInPython #ProgrammingBasics
To view or add a comment, sign in
-
-
🚀Day 9- CRUD operations While learning CRUD (Create, Read, Update, Delete) operations using Python lists, I realized understanding concepts is different from actually applying them. One mistake I made: Initially, I tried removing list elements using an index with remove() instead of pop(). That caused errors because remove() expects a value, not a position. This helped me clearly understand the difference between the two methods. #Python #LearnPython #CodingJourney #ProgrammingBasics #DataStructures #SoftwareDevelopment
To view or add a comment, sign in
-
-
Python Clarity Series – Episode 1 Topic: = vs == 🚫 Most common Python mistake students make… Using = instead of == Let’s fix this once and for all 👇 👉 = → Used to assign value Example: x = 5 👉 == → Used to compare values Example: x == 5 ⚠️ In exams, this small mistake can cost marks even if logic is correct. 💡 Tip to remember: “= means GIVE, == means CHECK” Students—have you ever made this mistake? 🙂 #Python #CodingForStudents #CBSE #LearnPython
To view or add a comment, sign in
-
-
Your Python program can stop entirely for several seconds. This is caused by the garbage collector cleaning up the memory. Importantly, it can happen even if you are not allocating and deallocating a lot of memory. And the pause is not caused by the cleaning up of the memory. All that is required is that your program has, at some point, allocated lots of objects. Even if these objects are retained, the problem will remain. Python does offer you the tools to deal with the problem, and your favorite AI will tell you all about it if you ask.
To view or add a comment, sign in
-
Day 5/30 – DSA in Python 🚀 Today I learned about HashMap and its basic methods. Covered: • Introduction to HashMap • Insert, search, update operations • Frequency HashMap concept Understood how HashMap helps in counting elements efficiently and reducing time complexity compared to nested loops. Step by step improving my understanding of optimized problem-solving. Consistency continues 💪 #DSA #Python #HashMap #30DaysChallenge #ProblemSolving
To view or add a comment, sign in
-
📌 Python Tuple – Negative Indexing Today, I learned about negative indexing in Python tuples 🔄 ✔️ Negative index starts from -1 ✔️ -1 → Last element ✔️ -2 → Second last element ✔️ -3 → Third last element ✔️ -4 → First element 📖 Example: If tuple = ("apple", "banana", "cherry", "orange") ➡️ mytuple[-1] → orange ➡️ mytuple[-4] → apple Negative indexing helps us access elements from the end easily ✅ Learning step by step 🚀💻 #Python #PythonLearning #Tuple #NegativeIndexing #CodingJourney #LearningInPublic #Programming #TechSkills
To view or add a comment, sign in
-
-
💥 Day 34 of My 70-Day Python Learning Challenge 💥 Today, I learned about global and local variables and how variable scope works in Python. I understood that a local variable is created inside a function and can only be accessed within that function. Once the function finishes executing, the variable is no longer available outside it. On the other hand, a global variable is defined outside any function and can be accessed throughout the program. I also learned about scope which determines where a variable can be used or modified. This helped me understand why some variables are accessible in certain parts of a program while others are not. Grasping the concept of scope is important because it prevents errors, improves code organization, and helps avoid unintended changes to variables. It’s another step toward writing cleaner and more structured programs. The deeper I go, the clearer the structure of Python becomes. 🚀 #70dayschallenge #python #variable
To view or add a comment, sign in
-
Python Tip of the Day 🐍 hash() returns a numeric hash value for an object and is used for fast lookups in dictionaries and sets. Only immutable objects like int, string, and tuple are hashable in Python. Day 7 of building Python basics. #PythonDaily #PythonBasics #DataAnalytics #LearningPython
To view or add a comment, sign in
-
-
Python Clarity Series – Episode 5 Topic: is vs == ⚠️ is vs == — A tricky Python concept Most students think both are same… but they are NOT. 👉 == → checks VALUE 👉 is → checks MEMORY LOCATION Example: a = [1,2] b = [1,2] a == b ✅ True a is b ❌ False 💡 Simple idea: == → “Are values same?” is → “Are they the SAME object?” Not always asked directly in exams—but builds strong understanding. Have you used “is” correctly before? #PythonTips #CodingConcepts #DeepLearning
To view or add a comment, sign in
-
Explore content categories
- Career
- Productivity
- Finance
- Soft Skills & Emotional Intelligence
- Project Management
- Education
- Technology
- Leadership
- Ecommerce
- User Experience
- Recruitment & HR
- Customer Experience
- Real Estate
- Marketing
- Sales
- Retail & Merchandising
- Science
- Supply Chain Management
- Future Of Work
- Consulting
- Writing
- Economics
- Artificial Intelligence
- Employee Experience
- Workplace Trends
- Fundraising
- Networking
- Corporate Social Responsibility
- Negotiation
- Communication
- Engineering
- Hospitality & Tourism
- Business Strategy
- Change Management
- Organizational Culture
- Design
- Innovation
- Event Planning
- Training & Development