🚀 Day 4/100 of Learning Journey Today I explored an important Python concept — Generators and the yield keyword. Generators are special functions that return values one at a time instead of returning everything at once like normal functions. This makes them memory efficient and very useful when working with large datasets. 🔹 What I learned today: What generators are and why they are used How the yield keyword pauses and resumes function execution How to retrieve values using the next() function Creating generator functions to generate sequences like squares of numbers Iterating through generator outputs using loops 💡 Key takeaway: Unlike normal functions that stop after return, generator functions pause at yield and continue from the same place when called again. Every day I’m strengthening my Python fundamentals step by step. Excited to continue this journey! 💻✨ github - https://lnkd.in/gEqWyYXT #Day4 #100DaysOfCode #PythonLearning #Generators #LearnPython #CodingJourney #Programming
Learning Python Generators with Yield Keyword
More Relevant Posts
-
(DAY-11) 🚀 Understanding Lists in Python Lists are one of the most important data structures in Python, allowing us to store multiple values in a single variable. This infographic explains the concept of lists, their key properties, and essential operations like storing data, accessing elements, slicing, and adding or removing items. Perfect for beginners to quickly grasp the fundamentals and for learners who want a clean revision of core concepts. 💡 #Python #Programming #LearnPython #Coding #DataStructures
To view or add a comment, sign in
-
-
🚀 Python Class Notes – Easy & Exam Ready 📘 I’ve created clean, handwritten-style notes on Python covering all important concepts: ✅ Key Definitions ✅ Data Types & Variables ✅ Conditional Statements ✅ Loops & Functions ✅ Real-life Applications These notes are simple, well-structured, and perfect for quick revision 📚 If you are a student or beginner in programming, this will definitely help you! 💡 Keep learning. Keep growing. #Python #Programming #StudentLife #Coding #Notes #Learning #BCA #Developers #PythonBasics #Education
To view or add a comment, sign in
-
-
Week 1, Post 1: Learning Python from the fundamentals Today I revised and studied up to Chapter 4 of PythonCrashCourse book, and I am enjoying going back to the basics with intention. This week’s focus has been on lists and working with lists. I covered: - creating and accessing lists - modifying, adding, and removing items - sorting and organizing lists - using methods like "append()", "insert()", "remove()", and "pop()" - looping through lists with "for" - using "range()" - slicing lists - list comprehensions - understanding tuples and when to use them One thing I am reminding myself is that strong programming skills are built on strong fundamentals. It is easy to want to jump into advanced topics, but understanding the basics deeply makes everything else easier later. My goal is not just to learn Python quickly, but to learn it properly through notes, practice, and consistent revision. This is Post 1 of Week 1 in my Python learning journey. More updates to come. #Python #LearnPython #Programming #CodingJourney #SoftwareDevelopment #TechSkills #PythonBasics
To view or add a comment, sign in
-
🚀 Day 2 of Learning Data Analysis Continued with core Python concepts today: 🔹 Operators and operands 🔹 Conditional statements (if-else) 🔹 Writing basic logic-based programs 💡 Key Learning: Logic building is the most important skill in programming. The more problems you solve, the better you get. Small steps daily = big results 🚀 #Python #Programming #DataAnalytics #Consistency
To view or add a comment, sign in
-
-
🎯 Tech Learning Journey - Day 02: Python Functions - Reusable Code Blocks! Functions are like little programs within your program. You write code once, give it a name, and reuse it whenever you need the same task done - no more copying and pasting! def greet\_user\(name\): message = f"Hello, \{name\}! Welcome aboard!" return message # Use it as many times as you need print\(greet\_user\("Dhanush"\)\) print\(greet\_user\("Alex"\)\) Where I use this: Calculations that I need repeatedly, validating user input, and organizing my code into manageable chunks. #Python #Coding #Programming #Functions
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
-
📘 Python Fundamentals – Quick Learning Notes 🐍 Here are some basics I learned today that might help beginners: 🔹 Python is a simple and beginner-friendly programming language 🔹 Use Interactive Mode (python in terminal) to test code instantly 🔹 help() shows documentation, dir() shows available methods 🔹 Variables store data (e.g., x = 10, name = "Ali") 🔹 Follow naming rules: no spaces, don’t start with numbers 🔹 Common data types: int, float, str, bool, list, dict 💡 Example: print(type("Hello")) → shows data type Small steps like these build a strong programming foundation. Keep practicing! 🚀 #Python #Programming #LearnCoding #BeginnerTips #TechLearning
To view or add a comment, sign in
-
-
Your Python journey starts here 🚀 Confused about what to learn and in what order? Don’t worry — we’ve got you covered with a complete roadmap from basics to advanced concepts 💻 Start with syntax, master data structures, understand OOP, and explore powerful libraries like NumPy & Pandas. Step by step, you’ll build the skills needed to become industry-ready in 2026. 📍 Learn smarter with CodeSquadz 📞 78-79-33-22-11 🌐 www.codesquadz.com #Python #CodingJourney #LearnPython #TechSkills #Programming #Developers #CodeSquadz #FutureReady #Upskill
To view or add a comment, sign in
-
-
🚀 Day 03 – Learning Control Structures in Python Today was all about understanding control structures — the backbone of decision-making in programming. 🔹 I learned how to use if, elif, and else statements to control the flow of a program 🔹 Explored how programs can make decisions based on conditions 🔹 Practiced writing logic to solve real problems step by step 🔹 Understood how important indentation is in Python 💡 One key takeaway: Control structures allow us to make our programs smart and dynamic, instead of just running line by line. 📌 Practice Task: Built a small program to count even and odd numbers from user input using conditional logic. Every day, things are getting more interesting and challenging — and I’m enjoying the journey! #Python #LearningJourney #100DaysOfCode #Programming #Coding #Beginners #TechSkills
To view or add a comment, sign in
-
-
🚀 Exploring Python Loops & Control Statements: The Core of Logical Programming While learning Python, I realized how important loops and control statements are for writing efficient and logical code. Here’s a quick summary of what I understood: 🔹 For Loop Used to iterate over a sequence like lists, tuples, or strings. Best when the number of iterations is known. 🔹 While Loop Runs as long as a condition is true. Useful when the number of iterations isn’t fixed. 🔹 If, Elif, Else Helps in decision-making by executing code based on conditions. 🔹 Break Statement Used to exit a loop immediately when a condition is met. 🔹 Continue Statement Skips the current iteration and continues with the next one. 🔹 Pass Statement Acts as a placeholder when no action is needed but syntax requires a statement. 💡 These concepts are helping me build stronger programming logic step by step. 📌 Always open to learning more and improving! #Python #LearningJourney #Programming #Coding #Loops #ControlStatements
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