Keen Learner and Exp... • 1d
Day 3 of learning python as a beginner. Topic: Loops Loops are of two types: for loop and while loop. For loop is used when: 1. you know how many times you have to repeat, in my case I know I have to repeat it 10 times to get a full multiplication table of a number. 2. It is a loop over a sequence like a range or list. ex- for i in range(1, 11): 3. It is mostly automatic. While loop is used when: 1. You don’t know how many times to loop. Therefore it loops until a condition becomes false. ex- while(table<11): 2. It is manual, you may need an input to keep it running (in my case the number). In my project of multiplication table generator I used while loop as I wanted to take input from user more than once. Here's the code and result.
Student @Geethanjali... • 11m
🚀 Dive into the world of JavaScript Loops with our comprehensive tutorial! Whether you're just starting out or looking to brush up on your skills, this video is perfect for you. 🔍 What's Inside? ➡ For Loops: Learn how to efficiently repeat action
See MorePassionate about Pos... • 2m
Nikita Bier costs $10k for a hour long advisory session - here’s a free ChatGPT prompt for assessing the virality of your app instead: Analyze my app’s current UX, UI, and social architecture through the lens of engineered virality, meme-driven dis
See MoreBusiness enthusiasti... • 1m
“Hooked on Repeat: How Habit Loops Build Loyal Customers Without Them Knowing” Habit loops are built on three parts: cue, routine, reward. Once this cycle repeats, a habit is formed—often subconsciously. Businesses engineer these loops to drive cust
See MoreDownload the medial app to read full posts, comements and news.