Day 3 of My Python Learning Journey 🐍 Topic: Variable Reinitialization Today I learned about variable reinitialization (reassignment) in Python. It means you can give a variable a new value at any time, and Python will update it. 🔁 Simple Example: score = 50 print(score) # 50 score = 90 # Reinitialization print(score) # 90 💡 What I understood: Variables are not fixed — they can change during program execution Reinitialization helps make programs dynamic and flexible It’s useful when values depend on conditions, loops, or user input 📌 Key Takeaway: A variable name stays the same, but its value can be updated anytime in Python. Day 3 complete! Feeling more confident with Python basics 💪 On to the next concept tomorrow 🚀 #PythonLearning #Day3 #CodingJourney #Variables #Reinitialization #LearnPython #BeginnerToPro
A Vani’s Post
More Relevant Posts
-
Day 4 of Learning Python 🐍 Topic: Swapping of Two Variables Today I learned how to swap the values of two variables in Python — a simple concept, but super powerful in problem-solving and logic building. 🔁 What is Swapping? Swapping means exchanging the values of two variables. If a = 5 and b = 10, after swapping 👉 a = 10 and b = 5. 🧠 Pythonic Way (No Third Variable Needed!) Copy code Python a = 5 b = 10 a, b = b, a print(a) # 10 print(b) # 5 ✨ Python makes it clean and elegant using tuple unpacking. Every small concept I learn builds my confidence step by step 🚀 Excited for Day 5! #PythonLearning #Day4 #SwappingVariables #CodeNewbie #LearnPython #100DaysOfCode
To view or add a comment, sign in
-
-
Learning Python – Polymorphism 🚀 As part of my 100 Days of Python Challenge, today I practiced polymorphism in Python and explored how the same method or function can behave differently based on the object or context. Concepts covered: • Method overriding • Using the same interface for different implementations • Understanding runtime behavior in OOPS • Writing flexible and reusable code This practice helped me understand how polymorphism improves code scalability and maintainability in real-world applications. 🔗 GitHub Code: https://lnkd.in/g39yd-p4 #Python #Polymorphism #OOPS #ObjectOrientedProgramming #100DaysOfPython #CodingJourney #LearningInPublic #GitHub
To view or add a comment, sign in
-
Python while loops are powerful — but dangerous if misunderstood 🔁 In today of this beginner-friendly Python series, we break down the while loop step by step. You’ll learn: • What a while loop is and how it works • Condition-based iteration vs fixed iteration • Proper initialization and variable updates • Common mistakes that cause infinite loops • How break and continue control execution • When and why to use while-else • Clear comparison: for loop vs while loop If you’re learning Python seriously, understanding when to use while is a game changer 📌 👉 Next: Python match statement 🚀 Follow for daily Python fundamentals made simple. #Python #WhileLoop #LearnPython #PythonBeginners #CodingBasics #Programming #DeveloperJourney
To view or add a comment, sign in
-
How does Python manage memory? Python uses Garbage Collection to automatically free unused memory, which is why it is beginner-friendly and efficient. Interestingly, half of the people selected Garbage Collection, while others selected Manual Allocation, Registers, and Pointers. This shows many are still learning how Python handles memory internally. Keep learning, keep growing 🚀 #Python #LearnPython #ProgrammingBasics #TechLearning
To view or add a comment, sign in
-
What if Python could tell you: “You passed!” or “Sorry, try again”? That’s exactly what this mini Python project does I built a simple Student Result System where: -Student names are stored as keys -Subjects and marks live inside nested dictionaries -Logic decides Pass or Fail, no emotions involved This project isn’t about writing long code. It’s about learning how to think logically: -How data is structured -How loops actually work -How decisions are made in code If you’re a beginner who understands syntax but struggles with “how everything connects.” This kind of project will change your mindset. Code should feel logical, not scary. #Python #LearningPython #BeginnerProjects #ProgrammingLogic #CodingMadeSimple #LearnByBuilding
To view or add a comment, sign in
-
-
🚀 Python Learning Journey – Day 10 Today, I learned about Tuples in Python and their built-in functions. Here’s what I practiced: ✅ Creating tuples ✅ Accessing elements using index ✅ Understanding immutability (tuples can’t be modified) ✅ Tuple methods – count() and index() ✅ Built-in functions – len(), sum(), max(), min(), all(), any() Tuples helped me understand how to store fixed data safely. Step by step, strengthening my Python fundamentals 💪 Consistency continues! #Python #LearningJourney #Beginner #Day10 #Tuples #Coding #KeepLearning
To view or add a comment, sign in
-
-
Day 4 of learning 🐍: INDEXING-- Indexing is one of the most fundamental and powerful concepts in Python. It allows you to access specific elements from sequences such as: 🔸Strings 🔸Lists 🔸Tuples 📌 How Indexing Works In Python, indexing always starts from 0. 📌 Negative Indexing Python also supports negative indexing, which starts from the end. 💡 Why Indexing is Important? ✔ Helps in accessing and modifying data. ✔ Essential for slicing. ✔ Used in loops and data manipulation. ✔ Core concept for Data Science and problem-solving. #Python #Programming #DataScience #Learning 💢Indexing is not supported by numericals. 📌 Indexing with Strings:
To view or add a comment, sign in
-
💥 Day 29 of My 70-Day Python Learning Challenge 💥 Continuing my Python learning journey, today I taught and explained the concept of iterators in Python. An iterator is an object that allows us to access elements one at a time from a collection such as a list, tuple, or dictionary. It processes data sequentially instead of handling everything at once. One major difference between an Iterator and a variable is that a Variable simply stores a value in memory, while an Iterator is used to go through multiple values one by one. In other words, a variable holds data, but an iterator helps us move through data. Teaching this concept helped reinforce my understanding of how Python handles iteration and how it connects to loops. #70dayschallenge #python #MITAppnventor
To view or add a comment, sign in
-
🚀 How does Python decide what to do next? That’s where if – elif – else comes in 👇 Every real-world Python program makes decisions — ✔️ Age verification ✔️ Grading systems ✔️ Weather apps ✔️ Automation logic In this post, I’ve broken down Python decision-making in a beginner-friendly way with clean examples and best practices 🧠🐍 👉 Save this post 👉 Share with Python beginners 👉 Follow for more Python fundamentals #Python #LearnPython #PythonBasics #IfElse #CodingForBeginners #Programming #PythonDeveloper #100DaysOfCode #TechSkills
To view or add a comment, sign in
-
🚀 Python Practice | Finding the Second Largest Number in a List 🐍 Today I practiced a basic Python logic problem: finding the second largest number in a list. At first glance, it looks easy — but problems like these are crucial because they strengthen: -Logical thinking -Loop and condition handling -Understanding how code works behind the scenes (without shortcuts) 📌 Approach: -First loop to find the largest number -Second loop to find the second largest number less than the largest -Used basic loops and conditional logic for better clarity I solved this without using built-in functions to focus purely on fundamentals. ✨ This helped me strengthen my understanding of: -Loops & conditionals -Logical thinking -Writing optimized beginner-friendly code #Python #CodingPractice #ProgrammingBasics #LearningJourney #ProblemSolving #DSA #KeepLearning
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