Keen Learner and Exp...ย โขย 1m
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...ย โขย 1y
๐ 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 MoreKeen Learner and Exp...ย โขย 1m
Day 4 of learning python as a beginner. Topic: printing * pattern using while and for loop. I took the famous challenge of printing a * (star) pattern my goal was to print a triangle and diamond shape pattern. first I used int(input()) function to
See MoreHey I am on Medialย โขย 3m
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...ย โขย 2m
โ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.