Luwa Tech Community.
                                
                            
                            
                    
                                
                                
                                February 26, 2025 at 06:21 AM
                               
                            
                        
                            Day 3: Loops in Python! 🔄🐍
🚀 100 Days of Python -
Ever wanted to automate repetitive tasks? Today, we’re learning about loops, which help us repeat actions without writing the same code multiple times!
🔹 Types of Loops in Python
✅ For Loop – Repeats a block of code for a fixed number of times.
✅ While Loop – Keeps running as long as a condition is True.
🔹 Example 1: For Loop
for i in range(5):  
    print("Python is awesome!")  
🔹 Example 2: While Loop
count = 1  
while count <= 5:  
    print("This is loop number", count)  
    count += 1  
🔹 Real-life Example:
Imagine a SafeBoda app sending ride requests. It loops through available riders until one accepts! 🚀
💡 Challenge: Write a Python program that prints numbers from 1 to 10 using a loop. Share your code below!
🔜 Next up: Functions – Writing Reusable Code Like a Pro!
#python #100daysofpython #coding #learntocode
                        
                    
                    
                    
                    
                    
                                    
                                        
                                            👍
                                        
                                    
                                        
                                            ❤️
                                        
                                    
                                        
                                            🤍
                                        
                                    
                                    
                                        7