🚀 Day 20 of my Python learning journey Today I learned about Operator Overloading in Python. I understood how we can define the behavior of operators like +, -, * and == for custom objects by overriding specific magic methods in our class. I practiced building a Vector class from scratch and tested different operations on Vector objects to see how Python internally calls these magic methods. I always used w3schools.com to understand the concepts more clearly. Today's learning helped me understand how powerful and flexible OOP really is. You can make your custom objects behave just like built-in types. My work is here https://lnkd.in/gGsjWtee #Python #100DaysOfCode #LearningInPublic #OOP #Programming #Developers #DSA #W3Schools
Python Operator Overloading and OOP
More Relevant Posts
-
📚 Continuing my Python learning journey Today I completed learning three important Python data structures: tuples, sets, and dictionaries. 🔑 Key concepts I explored: • Tuples – ordered, immutable collections used for fixed data • Sets – unordered collections with unique elements, useful for removing duplicates and fast lookups • Dictionaries – key-value pairs for storing and accessing structured data efficiently Understanding the differences between these data structures helped me see when and why to use each one in real-world scenarios. It’s interesting how each structure is designed for a specific purpose, making Python both powerful and flexible. Step by step, I’m building a stronger foundation in Python programming and problem-solving. 🚀 #Python #Programming #LearningJourney #ComputerScience #Coding
To view or add a comment, sign in
-
Day -12 of #100DaysOfCode Today I explored some powerful Python concepts: Closures in higher-order functions – learned how functions can remember values from their enclosing scope. Lambda functions – wrote concise, one-line functions for quick operations. Practiced examples like: -Multiplication using closures -Addition with lambda -Finding square of a number -Checking even or odd -Finding the greatest of three numbers It’s amazing how Python lets you write clean and compact code using these techniques. Slowly but surely building confidence every day Consistency is the key — see you on Day 13! #Python #CodingJourney #Learning #100DaysChallenge #Programming #Developers #SkillShishya
To view or add a comment, sign in
-
-
🚀 Today I Learned: Python Lists Continuing my Python journey, today I explored one of the most important concepts — Lists. 🔹 What I learned: - Creating lists to store multiple values - Accessing items using index - Adding & removing elements (append, insert, remove, pop) - Updating list values - Using loops to iterate through a list 🔹 Small practice: I created a list of numbers and calculated the average using Python. 💡 Lists are very useful in real-world projects for handling data efficiently. I’m excited to keep learning and building more with Python every day! #Python #LearningJourney #Coding #Programming #Beginners #100DaysOfCode
To view or add a comment, sign in
-
🎯 Tech Learning Journey - Day 06: Python List Comprehensions - Write Less, Do More! List comprehensions are a shortcut for creating lists in Python. Instead of writing multiple lines with loops, you can build a new list in just one clean line that reads like English. # Traditional way \(takes 3 lines\) squares = \[\] for num in range\(5\): squares.append\(num \*\* 2\) # List comprehension \(1 line!\) squares = \[num \*\* 2 for num in range\(5\)\] Where I use this: Transforming data, filtering lists, and making my code shorter and more readable. #Python #Coding #Programming #ListComprehensions
To view or add a comment, sign in
-
-
💻 Python Practice Programs 🚀 Here are some simple yet important Python programs every beginner should know 👇 🔹 Program 4: Swap two variables 🔹 Program 5: Generate a random number 🔹 Program 6: Convert kilometers to miles 🔹 Program 7: Convert Celsius to Fahrenheit These basic programs help build a strong foundation in Python by improving logic, understanding of variables, and real-world problem solving. 📌 Consistency is the key — small steps every day lead to big results. #Python #Programming #Coding #DataScience #Learning #Beginners #Tech #DeveloperJourney #100DaysOfCode
To view or add a comment, sign in
-
-
🚀 Python Learning Series – Part 3 Continuing my Python journey, this part focuses on one of the most important concepts in programming — Loops. 📌 In this part, I’ve covered: • What loops are and why they are used • for loop and its practical use cases • while loop for condition-based execution • break & continue for better control • Nested loops for complex logic and patterns Loops play a crucial role in building logic, automating tasks, and working with data efficiently. 💡 This part helped me understand how to write cleaner and more efficient code. More parts coming soon as I continue learning step by step! I’d love to hear your feedback and suggestions 🙌 #Python #LearningJourney #Programming #Coding #DataAnalytics #TechSkills #Loops
To view or add a comment, sign in
-
💥 Day 38 of My 70-Day Python Learning Challenge 💥 As part of my recent learning, I explored exception handling in Python using 'try' and 'except'. Exception handling allows a program to handle errors gracefully instead of crashing. The 'try' block is used to write code that might raise an error, while the 'except' block handles the error if it occurs. This is useful when working with user input or situations where errors are likely, such as invalid data types or division by zero. Learning this concept helped me understand how to write more reliable and user-friendly programs. Still learning, still improving. 🚀 #70dayschallenge #python #exceptionhandling
To view or add a comment, sign in
-
💡 Did you know there’s a data type in Python that cannot be changed once created? That’s where Tuples come in 👇 While learning Python, I explored Tuples — simple, yet powerful. ✔️ Ordered ✔️ Immutable ✔️ Can store multiple data types Tuples are especially useful when you want your data to remain safe and unchanged throughout your program. I’ve explained this concept in a simple and beginner-friendly way with examples! 👉 Check out my Medium post: 🔗 https://lnkd.in/gkkPuVuq Would really appreciate your feedback 🙌 #Python #Coding #Programming #Beginners #LearningJourney #Tech
To view or add a comment, sign in
-
-
Explored Python step by step and turned my understanding into an article in MEDIUM. Covered key concepts from basics to OOP in a simple way. Focused on clarity and structured learning. This reflects my learning journey and growth. Take a look in: [https://lnkd.in/gpDbjesE] Thank you Shaheer Shaik Sir for your encouragement and support. #Python #Learning #CodingJourney #Programming #InnomaticsResearchLabs
To view or add a comment, sign in
-
Day 4/30 – Exploring Python concepts Today I spent some time learning important Python concepts like loops, lists, tuples, and dictionaries. Loops help us repeat tasks efficiently instead of writing the same code multiple times. Lists and tuples allow us to store multiple values in a single variable, making data easier to manage. Dictionaries help organize data in a key-value format, which makes accessing information faster and more structured. Understanding these concepts helped me see how Python can be used to handle data and automate tasks in a much simpler way. Each small concept I learn is helping me build a stronger foundation in programming. Excited to keep learning and improving every day. ✨ #Day4 #30DaysOfPosting #PythonLearning #CodingJourney #ProgrammingBasics #LearningJourney
To view or add a comment, sign in
Explore related topics
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
great 👏