I used to write code to solve problems… now I’m learning how to structure it. Today’s Python MahaRevision 🧩 Chapter 10: Object-Oriented Programming This chapter introduced concepts that actually make code feel organized: → Classes & Objects → Class attributes vs Instance attributes → Understanding “self” (this one took a moment to click) → init() constructor → @staticmethod At first, all these terms felt a bit overwhelming. But while doing the practice set, things started making more sense. Practice set done: Created classes, worked with objects, used constructors, and experimented with different types of methods. Biggest takeaway: Good code isn’t just about making it work… it’s about making it structured and reusable. Still learning, but definitely seeing growth. #Python #LearningInPublic #CodingJourney #Programming #OOP
Learning Object-Oriented Programming with Python
More Relevant Posts
-
📘 Python Learning – Day 4 Highlights 🐍 Today’s class was about Lists & Basic List Operations — super useful for handling multiple data! 🔹 What is a List? An ordered, changeable collection that allows duplicates 🔹 Accessing Data: Indexing & slicing (list[0], list[1:4]) 🔹 List Operations: ✔ Add → append(), insert() ✔ Remove → remove(), pop(), clear() 🔹 Built-in Functions: len(), sum(), max(), min(), sort(), reverse() 🔹 Practice Program: Created a simple menu-driven program to add, remove, and display list items 💡 Lists make data handling easier and more dynamic in Python Step by step, getting more comfortable with coding 🚀 #Python #Programming #Coding #LearningJourney #Beginner #TechSkills
To view or add a comment, sign in
-
-
🚀 Today’s Learning: Python Conditional Statements (if, elif, nested if) 🧠🐍 Today in class, I learned how decision-making works in Python using if, elif, and nested if statements. 🔹 Key Takeaways: ✔️ if-else → Used when there are two possible outcomes (True / False) ✔️ if-elif-else → Used when checking multiple conditions (order matters ⚠️) ✔️ nested if → Used for multi-level decision making (filter → then decide) ✔️ Writing clean and optimized code is as important as writing working code 💡 One important lesson: 👉 “Code running ≠ Code correct” 👉 Logic and optimization make a real difference in programming 🔧 Also learned about common mistakes like: ❌ Wrong condition order ❌ Indentation errors ❌ Repeating unnecessary code 📌 Practiced real examples like: Marks grading system Discount calculation Finding largest number Even/Odd check with proper logic This session helped me understand how to think logically while coding, not just write code. #Python #LearningJourney #DataScience #Programming #CodingBasics #IfElse #LogicBuilding #StudentLife
To view or add a comment, sign in
-
-
Python Learning Journey – Day 5 🚀 Loops are where logic starts to feel powerful. Today, I focused on applying for and while loops to solve real problems instead of just learning syntax. Here’s what I built: • Calculated sum of squares (1 to 5) • Created a countdown program using while loop • Printed multiplication tables using nested loops • Found sum of even numbers in a range • Calculated sum from 1 to n • Iterated through lists efficiently • Printed custom ranges (-10 to -1) • Generated cubes of numbers Each problem improved my understanding of iteration, control flow, and writing cleaner logic. Consistency matters more than speed. One step every day. Big thanks to VASU KUMAR PALANI and PythonLife for the continuous learning support. #Python #CodingJourney #LearnInPublic #PythonLoops #Programming #Consistency #TechSkills
To view or add a comment, sign in
-
-
🚀 Understanding Armstrong Numbers in Python Today, I explored the concept of Armstrong Numbers and implemented a simple Python program to check whether a number satisfies this property. 🔍 What is an Armstrong Number? An Armstrong number is a number that is equal to the sum of its digits raised to the power of the total number of digits. 👉 Example: For 153 Digits → 1, 5, 3 Calculation → 1³ + 5³ + 3³ = 1 + 125 + 27 = 153 ✅ 💻 What this code does: Takes a number (e.g., 153) Extracts each digit using modulus and division Raises each digit to the power of total digits Adds the result to compute the sum Compares the sum with the original number Prints whether it is an Armstrong number or not 🧠 Key Concepts Used: While Loop Modulus Operator (%) Integer Division (//) Basic Mathematics Logic 📌 Learning Outcome: This small program helped me strengthen my understanding of: Number manipulation in Python Loop-based problem solving Writing clean logic for mathematical problems 💡 Next Step: Planning to extend this logic to check Armstrong numbers in a given range! #Python #Coding #100DaysOfCode #Programming #Learning #ComputerScience #Developers #CodingJourney
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
-
-
Decision Making (if-else) Today I learned how Python makes decisions using conditions. This is one of the most important concepts in programming. 🔹 What is Decision Making? It allows a program to take actions based on conditions. 🔸 if Statement Used to execute code only if a condition is true. Example: age = 18 if age >= 18: print("You can vote") 🔸 if-else Statement Executes one block if condition is true, otherwise another block. Example: age = 16 if age >= 18: print("Eligible") else: print("Not eligible") 🔸 if-elif-else Statement Used when we have multiple conditions. Example: marks = 75 if marks >= 90: print("Grade A") elif marks >= 60: print("Grade B") else: print("Grade C") 💡 Key Learning: Indentation is very important in Python. It defines the structure of code. 🧪 Practice Task: Create a program that checks whether a number is even or odd. 🎯 Interview Question: What is the difference between if and elif? Answer: "if" checks a condition independently, while "elif" is used to check multiple conditions in sequence. #Python #Learning #CodingJourney #Day4 #Programming #SDET Masai #dailylearning #masaiverse
To view or add a comment, sign in
-
I’m excited to share handwritten Python notes, covering everything from fundamentals to important advanced topics! 📖✨ These notes include: ✔️ Python Introduction & Syntax ✔️ Variables, Data Types & Operators ✔️ Strings, Lists, Tuples, Sets & Dictionaries ✔️ Conditional Statements & Loops ✔️ Functions & Arrays ✔️ Object-Oriented Programming (Classes, Inheritance, Polymorphism) ✔️ File Handling & JSON ✔️ And much more! Each topic is explained in a simple, structured, and easy-to-understand way, making it helpful for beginners as well as revision purposes. 📌 According to the notes (see index pages), the content is organized step-by-step, starting from basics and progressing to advanced concepts, which makes learning Python smooth and effective. 💡 This journey helped me strengthen my programming fundamentals and improve my problem-solving skills. I hope these notes help others who are learning Python! 🙌 #Python #Programming #Coding #Learning #StudentLife #PythonNotes #DeveloperJourney #TechSkills #ComputerScience #SelfLearning
To view or add a comment, sign in
-
Day 35 of python learning journey Today’s Python topic: Types of Patterns 👩💻🔥 Practiced how to build logic using patterns. As shown in the image, I covered 4 main types: 1. Star Patterns → Using `*` to create shapes like triangles and pyramids. Helps understand loops and spacing. 2. Number Patterns→ Arranging numbers in increasing or decreasing order. Builds strong logical thinking. 3. ABC Patterns → Printing alphabets A, B, C in order. Great for understanding sequences. 4. Pyramid Patterns → Centered shapes using spaces + symbols. Best way to learn alignment and indentation. Why patterns matter: They improve programming skills, help with loops, build logic, and are super useful in coding interviews. Bottom line from today: *Patterns = Practice + Logic + Creativity* Special thanks to the CEO G.R NARENDRA REDDY Sir for constant guidance and motivation. #Python #PatternProgramming #Loops
To view or add a comment, sign in
-
-
📘 Python Learning – Day 7 Highlights 🐍 Today’s class was all about improving coding efficiency and writing cleaner Python code 👇 🔹 Loops Revision: Practiced for & while loops with real examples 🔹 Loop Control: Used break, continue, and enumerate() for better control 🔹 List Comprehension: Learned a shorter, more Pythonic way to create lists in one line 🔹 Functions Basics: ✔ Reusable code using def ✔ Passing arguments & returning values 🔹 Utility Functions: Small, reusable functions for common tasks (like even/odd check, calculator, etc.) 💡 Example: [x**2 for x in range(1,6)] → creates squares in one line Writing cleaner, smarter, and more efficient code step by step 🚀 #Python #Programming #Coding #LearningJourney #Beginner #TechSkills
To view or add a comment, sign in
-
-
📘 Python Learning – Day 8 Highlights 🐍 Today’s class was about writing smarter and more flexible functions 👇 🔹 Variable Scope & LEGB Rule: Learned how Python searches variables → Local → Enclosing → Global → Built-in 🔹 Local vs Global Variables: Understanding where variables can be accessed and used 🔹 Advanced Arguments: ✔ *args → handles multiple positional arguments (as tuple) ✔ **kwargs → handles keyword arguments (as dictionary) 🔹 Flexible Functions: Created functions that can take unlimited inputs and return dynamic results 💡 Example: def add(*args): return sum(args) Step by step, moving towards writing more professional Python code 🚀 #Python #Programming #Coding #LearningJourney #Beginner #TechSkills
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