title
Python Loops Tutorial | Python For Loop | While Loop Python | Python Training | Edureka

description
🔥 Python Certification Training (Use Code "𝐘𝐎𝐔𝐓𝐔𝐁𝐄𝟐𝟎"): https://www.edureka.co/data-science-python-certification-course This Edureka "Python Loops" tutorial (Python Tutorial Blog: https://goo.gl/wd28Zr) will help you in understanding different types of loops used in Python. You will be learning how to implement all the loops in python practically. Check out our playlist for more videos: https://goo.gl/Na1p9G Below are the topics covered in this tutorial: 1) Why to use loops? 2) What are loops 3) Types of loops in Python: While, For, Nested 4) Demo on each Python loop Subscribe to our channel to get video updates. Hit the subscribe button above. #Python #Pythontutorial #Pythononlinetraining #Pythonforbeginners #Pythonloops ------------------------------------------------------------------------------------------- How it Works? 1. This is a 5 Week Instructor led Online Course,40 hours of assignment and 20 hours of project work 2. We have a 24x7 One-on-One LIVE Technical Support to help you with any problems you might face or any clarifications you may require during the course. 3. At the end of the training you will be working on a real time project for which we will provide you a Grade and a Verifiable Certificate! - - - - - - - - - - - - - - - - - About the Course Edureka's Python Online Certification Training will make you an expert in Python programming. It will also help you learn Python the Big data way with integration of Machine learning, Pig, Hive and Web Scraping through beautiful soup. During our Python Certification training, our instructors will help you: 1. Master the Basic and Advanced Concepts of Python 2. Understand Python Scripts on UNIX/Windows, Python Editors and IDEs 3. Master the Concepts of Sequences and File operations 4. Learn how to use and create functions, sorting different elements, Lambda function, error handling techniques and Regular expressions ans using modules in Python 5. Gain expertise in machine learning using Python and build a Real Life Machine Learning application 6. Understand the supervised and unsupervised learning and concepts of Scikit-Learn 7. Master the concepts of MapReduce in Hadoop 8. Learn to write Complex MapReduce programs 9. Understand what is PIG and HIVE, Streaming feature in Hadoop, MapReduce job running with Python 10. Implementing a PIG UDF in Python, Writing a HIVE UDF in Python, Pydoop and/Or MRjob Basics 11. Master the concepts of Web scraping in Python 12. Work on a Real Life Project on Big Data Analytics using Python and gain Hands on Project Experience - - - - - - - - - - - - - - - - - - - Why learn Python? Programmers love Python because of how fast and easy it is to use. Python cuts development time in half with its simple to read syntax and easy compilation feature. Debugging your programs is a breeze in Python with its built in debugger. Using Python makes Programmers more productive and their programs ultimately better. Python continues to be a favorite option for data scientists who use it for building and using Machine learning applications and other scientific computations. Python runs on Windows, Linux/Unix, Mac OS and has been ported to Java and .NET virtual machines. Python is free to use, even for the commercial products, because of its OSI-approved open source license. Python has evolved as the most preferred Language for Data Analytics and the increasing search trends on python also indicates that Python is the next "Big Thing" and a must for Professionals in the Data Analytics domain. Customer Review Sairaam Varadarajan, Data Evangelist at Medtronic, Tempe, Arizona: "I took Big Data and Hadoop / Python course and I am planning to take Apache Mahout thus becoming the "customer of Edureka!". Instructors are knowledge... able and interactive in teaching. The sessions are well structured with a proper content in helping us to dive into Big Data / Python. Most of the online courses are free, edureka charges a minimal amount. Its acceptable for their hard-work in tailoring - All new advanced courses and its specific usage in industry. I am confident that, no other website which have tailored the courses like Edureka. It will help for an immediate take-off in Data Science and Hadoop working." For more information, Please write back to us at sales@edureka.co or call us at IND: 9606058406 / US: 18338555775 (toll free). Instagram: https://www.instagram.com/edureka_learning/ Facebook: https://www.facebook.com/edurekaIN/ Twitter: https://twitter.com/edurekain LinkedIn: https://www.linkedin.com/company/edureka

detail
{'title': 'Python Loops Tutorial | Python For Loop | While Loop Python | Python Training | Edureka', 'heatmap': [{'end': 581.772, 'start': 530.012, 'weight': 0.931}, {'end': 750.607, 'start': 599.795, 'weight': 0.714}, {'end': 874.331, 'start': 842.817, 'weight': 0.786}, {'end': 1383.103, 'start': 1355.636, 'weight': 0.707}, {'end': 1628.331, 'start': 1519.824, 'weight': 0.704}], 'summary': 'This tutorial covers python loops, including while, for, and nested loops, highlighting their significance in software development with examples like payroll processing and atm simulation. it also explains random number generation, looping concepts, and nested loops, providing practical examples for understanding and encourages practical assignments.', 'chapters': [{'end': 35.799, 'segs': [{'end': 43.797, 'src': 'embed', 'start': 17.15, 'weight': 0, 'content': [{'end': 22.453, 'text': "Then we'll see what exactly are loops and then we'll focus on various types of loops that are there in Python.", 'start': 17.15, 'duration': 5.303}, {'end': 24.874, 'text': 'Namely while, for and nested.', 'start': 23.013, 'duration': 1.861}, {'end': 28.275, 'text': "I'll be explaining you all these three loops with examples.", 'start': 25.394, 'duration': 2.881}, {'end': 33.338, 'text': "After that I'll give you a brief summary of all the things that we have discussed in today's session.", 'start': 28.976, 'duration': 4.362}, {'end': 35.799, 'text': 'So I hope we all are clear with the agenda.', 'start': 34.078, 'duration': 1.721}, {'end': 40.881, 'text': 'Kindly give me a quick confirmation by writing down in the chat box so that I can move forward.', 'start': 36.699, 'duration': 4.182}, {'end': 43.797, 'text': 'All right, so Dave says move forward.', 'start': 42.256, 'duration': 1.541}], 'summary': 'Exploring python loops: while, for, nested. providing examples and summary.', 'duration': 26.647, 'max_score': 17.15, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI17150.jpg'}], 'start': 0.109, 'title': 'Python loops overview', 'summary': 'Covers an overview of while, for, and nested loops in python, with examples and reasons for using loops in programming.', 'chapters': [{'end': 35.799, 'start': 0.109, 'title': 'Python loops overview', 'summary': 'Covers an overview of various loops available in python, including while, for, and nested loops, with examples and reasons for using loops in programming.', 'duration': 35.69, 'highlights': ['The session focuses on the overview of various loops available in Python, including while, for, and nested loops.', 'The speaker will explain the reasons for using loops in programming before delving into the types of loops available.', 'The chapter includes explanations and examples for while, for, and nested loops in Python.', 'The speaker will provide a brief summary of all the topics discussed in the session.']}], 'duration': 35.69, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI109.jpg', 'highlights': ['The chapter includes explanations and examples for while, for, and nested loops in Python.', 'The session focuses on the overview of various loops available in Python, including while, for, and nested loops.', 'The speaker will explain the reasons for using loops in programming before delving into the types of loops available.', 'The speaker will provide a brief summary of all the topics discussed in the session.']}, {'end': 625.512, 'segs': [{'end': 192.997, 'src': 'embed', 'start': 168.554, 'weight': 0, 'content': [{'end': 174.2, 'text': 'at the same time introduces the complexity, makes it more efficient and even increases the speed of execution.', 'start': 168.554, 'duration': 5.646}, {'end': 178.379, 'text': 'So this is just one example in order to show you why we need loops.', 'start': 174.915, 'duration': 3.464}, {'end': 183.405, 'text': 'So there are hundreds of thousands of examples that you can think of why we need loops, right?', 'start': 179.2, 'duration': 4.205}, {'end': 189.092, 'text': "So this is just one simple example that I've shown you in order to make you understand why we need loops.", 'start': 184.066, 'duration': 5.026}, {'end': 192.997, 'text': 'So if you have any doubts any queries, please write it down in your chat box.', 'start': 189.833, 'duration': 3.164}], 'summary': 'Loops increase efficiency and execution speed. numerous examples demonstrate their necessity.', 'duration': 24.443, 'max_score': 168.554, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI168554.jpg'}, {'end': 234.504, 'src': 'embed', 'start': 211.391, 'weight': 1, 'content': [{'end': 218.296, 'text': 'Now what are loops? Loops basically allows us to execute a statement or a group of statement multiple times.', 'start': 211.391, 'duration': 6.905}, {'end': 222.693, 'text': 'Let me explain you this with the help of an example that is present in front of your screen.', 'start': 219.11, 'duration': 3.583}, {'end': 226.977, 'text': 'Now over here what happens, the control comes here and checks the condition.', 'start': 223.474, 'duration': 3.503}, {'end': 232.022, 'text': "So if this condition is true, it'll go on and execute the conditional code that is here.", 'start': 227.518, 'duration': 4.504}, {'end': 234.504, 'text': 'This is nothing but the statements that are present inside the loop.', 'start': 232.142, 'duration': 2.362}], 'summary': 'Loops enable multiple executions of statements.', 'duration': 23.113, 'max_score': 211.391, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI211391.jpg'}, {'end': 371.278, 'src': 'embed', 'start': 332.607, 'weight': 2, 'content': [{'end': 334.368, 'text': "So I've got a confirmation from everyone.", 'start': 332.607, 'duration': 1.761}, {'end': 338.991, 'text': "So we'll move forward and we'll see various type of loops that are present in Python.", 'start': 335.009, 'duration': 3.982}, {'end': 342.513, 'text': 'So Python basically supports three kinds of loops.', 'start': 340.152, 'duration': 2.361}, {'end': 345.335, 'text': 'One is while, for, and nested.', 'start': 342.993, 'duration': 2.342}, {'end': 350.238, 'text': "We'll look at all these loops one by one and I'll explain you with examples as well.", 'start': 345.775, 'duration': 4.463}, {'end': 352.539, 'text': "So first we'll have a look at while loop.", 'start': 350.818, 'duration': 1.721}, {'end': 357.242, 'text': "So while loop is basically used when you don't know how many iterations are required.", 'start': 353.219, 'duration': 4.023}, {'end': 362.255, 'text': 'So let me explain you this with the help of the flow chart that is there in front of your screen.', 'start': 358.194, 'duration': 4.061}, {'end': 368.237, 'text': 'Now over here what happens, the control will move inside the loop only when this while condition is true.', 'start': 362.776, 'duration': 5.461}, {'end': 371.278, 'text': "And when it is true, it'll execute the body of the loop.", 'start': 368.998, 'duration': 2.28}], 'summary': 'Python supports while, for, and nested loops. while loop is used when iterations are unknown.', 'duration': 38.671, 'max_score': 332.607, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI332607.jpg'}, {'end': 447.109, 'src': 'embed', 'start': 422.597, 'weight': 4, 'content': [{'end': 431.061, 'text': "So first we'll see a very small introductory example of while loop in which I'm going to print the integer values between 0 to 9 that won't include 9.", 'start': 422.597, 'duration': 8.464}, {'end': 435.803, 'text': "So it will print 0 1 2 3 till 9, but it won't include 9.", 'start': 431.061, 'duration': 4.742}, {'end': 438.104, 'text': 'So let me open my pie charm and show you how to do that.', 'start': 435.803, 'duration': 2.301}, {'end': 440.245, 'text': 'Now This is my pie charm guys.', 'start': 439.005, 'duration': 1.24}, {'end': 442.366, 'text': "So over here as I've told you earlier as well.", 'start': 440.666, 'duration': 1.7}, {'end': 447.109, 'text': "I'm going to print the integer values between 0 to 9, but that won't include 9.", 'start': 442.426, 'duration': 4.683}], 'summary': 'Introduction to while loop printing integers 0 to 8', 'duration': 24.512, 'max_score': 422.597, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI422597.jpg'}, {'end': 581.772, 'src': 'heatmap', 'start': 530.012, 'weight': 0.931, 'content': [{'end': 536.756, 'text': 'And after that I have increased the value of my count by one and finally when the control comes out of the loop, I want to print goodbye.', 'start': 530.012, 'duration': 6.744}, {'end': 538.858, 'text': 'So let us see whether it works or not.', 'start': 537.297, 'duration': 1.561}, {'end': 542.7, 'text': "I'm going to run it and as you can see that it works.", 'start': 539.078, 'duration': 3.622}, {'end': 551.486, 'text': 'So we have 0 1 2 3 4 5 6 7 and 8 and finally when the control went out of the loop, it has printed goodbye.', 'start': 543.061, 'duration': 8.425}, {'end': 553.868, 'text': 'This is just a very small example guys.', 'start': 552.146, 'duration': 1.722}, {'end': 555.889, 'text': 'Now, let me go back to my slides.', 'start': 554.268, 'duration': 1.621}, {'end': 559.782, 'text': 'Now the example that we just saw was a very simple example.', 'start': 557.059, 'duration': 2.723}, {'end': 564.066, 'text': "So I'll increase the complexity a bit and I'll give you one more example.", 'start': 560.322, 'duration': 3.744}, {'end': 565.667, 'text': 'So let us move forward with that.', 'start': 564.166, 'duration': 1.501}, {'end': 570.692, 'text': "So over here what I'm trying to do is I'm trying to code a little guessing game.", 'start': 566.348, 'duration': 4.344}, {'end': 579.95, 'text': 'All right, so what happens in this guessing game? So there will be a random number that will be generated between say zero to 20.', 'start': 571.232, 'duration': 8.718}, {'end': 581.772, 'text': 'and you need to guess that number.', 'start': 579.95, 'duration': 1.822}], 'summary': 'Code demonstration of loop, iteration, and guessing game.', 'duration': 51.76, 'max_score': 530.012, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI530012.jpg'}, {'end': 620.26, 'src': 'embed', 'start': 588.437, 'weight': 5, 'content': [{'end': 591.56, 'text': 'If you have guessed the number that is greater than the random number,', 'start': 588.437, 'duration': 3.123}, {'end': 599.026, 'text': "then it will print that number is too large and the moment you guess the right answer, you'll exit the while loop and you have won the game basically.", 'start': 591.56, 'duration': 7.466}, {'end': 606.597, 'text': "So it's just a pretty simple example, but this is a perfect example in order to show you why we use while loop, because, if you notice,", 'start': 599.795, 'duration': 6.802}, {'end': 610.818, 'text': "here I don't know how many iterations are required in order to guess the correct answer.", 'start': 606.597, 'duration': 4.221}, {'end': 615.099, 'text': 'So at that time while loop is a perfect solution to this problem.', 'start': 611.398, 'duration': 3.701}, {'end': 620.26, 'text': "So without wasting any time, I'll actually open my pie charm and show you how to execute this.", 'start': 615.799, 'duration': 4.461}], 'summary': 'Using a while loop to guess a random number, demonstrating its usefulness in handling uncertainty.', 'duration': 31.823, 'max_score': 588.437, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI588437.jpg'}], 'start': 36.699, 'title': 'Importance of loops in software development', 'summary': 'Discusses the significance of loops in software development with an example of payroll processing, highlighting inefficiencies of repetitive logic and the advantages of using loop structures. it also covers the concept of while loops in python, explaining their syntax and usage for scenarios where the number of iterations is unknown, and provides examples including printing integer values and a guessing game.', 'chapters': [{'end': 332.587, 'start': 36.699, 'title': 'Importance of loops in software development', 'summary': 'Discusses the importance of loops in software development, explaining the need for loops through an example of payroll processing, highlighting the inefficiency of repetitive logic and the advantages of using loop structures.', 'duration': 295.888, 'highlights': ['Loops in software development are important for efficiency and reducing code complexity, as shown through the example of payroll processing, where the repetitive logic for each employee is compared to using loop structures. The chapter demonstrates the importance of loops in software development through an example of payroll processing, highlighting the inefficiency of repetitive logic and the advantages of using loop structures for efficiency and reducing code complexity.', 'The chapter explains the concept of loops as a way to execute a statement or group of statements multiple times, providing a clear flowchart representation to illustrate the process. The concept of loops is explained as a way to execute a statement or group of statements multiple times, with a clear flowchart representation provided to illustrate the process.', 'Different types of loops, including finite and infinite loops, as well as post-test and pre-test loops, are described, with a focus on pre-test loops in Python. The chapter describes different types of loops, including finite and infinite loops, as well as post-test and pre-test loops, with a specific focus on pre-test loops in Python.']}, {'end': 625.512, 'start': 332.607, 'title': 'Python while loops', 'summary': 'Covers the concept of while loops in python, explaining the syntax and usage for scenarios where the number of iterations is unknown, and provides examples including printing integer values and a guessing game.', 'duration': 292.905, 'highlights': ['Python supports three kinds of loops: while, for, and nested. Python supports three kinds of loops: while, for, and nested.', 'While loop is used when the number of iterations is unknown, and the control moves inside the loop based on a true condition, executing the loop body until the condition becomes false. While loop is used when the number of iterations is unknown, and the control moves inside the loop based on a true condition, executing the loop body until the condition becomes false.', "The syntax for while loop includes writing 'while', followed by the expression or condition, a colon, and the statements or body of the loop. The syntax for while loop includes writing 'while', followed by the expression or condition, a colon, and the statements or body of the loop.", 'A basic example of using a while loop is demonstrated by printing the integer values between 0 to 8, excluding 9, using PyCharm. A basic example of using a while loop is demonstrated by printing the integer values between 0 to 8, excluding 9, using PyCharm.', 'A guessing game example is presented, where a random number is generated and the user needs to guess the number using a while loop, showcasing the usage of while loop for scenarios with an unknown number of iterations. A guessing game example is presented, where a random number is generated and the user needs to guess the number using a while loop, showcasing the usage of while loop for scenarios with an unknown number of iterations.']}], 'duration': 588.813, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI36699.jpg', 'highlights': ['Loops in software development are important for efficiency and reducing code complexity, as shown through the example of payroll processing, where the repetitive logic for each employee is compared to using loop structures.', 'The chapter explains the concept of loops as a way to execute a statement or group of statements multiple times, providing a clear flowchart representation to illustrate the process.', 'Different types of loops, including finite and infinite loops, as well as post-test and pre-test loops, are described, with a focus on pre-test loops in Python.', 'While loop is used when the number of iterations is unknown, and the control moves inside the loop based on a true condition, executing the loop body until the condition becomes false.', 'A basic example of using a while loop is demonstrated by printing the integer values between 0 to 8, excluding 9, using PyCharm.', 'A guessing game example is presented, where a random number is generated and the user needs to guess the number using a while loop, showcasing the usage of while loop for scenarios with an unknown number of iterations.']}, {'end': 863.173, 'segs': [{'end': 685.687, 'src': 'embed', 'start': 626.092, 'weight': 0, 'content': [{'end': 633.14, 'text': 'Now what happens first I need to import a module that is called random in order to generate a random number now over here.', 'start': 626.092, 'duration': 7.048}, {'end': 637.005, 'text': "I've defined a variable n and I've given a value to it that this 20,", 'start': 633.2, 'duration': 3.805}, {'end': 643.055, 'text': 'because I want the random number that is to be generated should be between the range 0 to 20..', 'start': 637.005, 'duration': 6.05}, {'end': 647.997, 'text': "Now I've taken one more variable and I've named it as to be guessed and over here.", 'start': 643.055, 'duration': 4.942}, {'end': 655.02, 'text': "It should be an integer types of written end, and this logic will generate the random number that I'm talking about,", 'start': 648.618, 'duration': 6.402}, {'end': 657.061, 'text': 'and this will be generated between the range 0 to 20..', 'start': 655.02, 'duration': 2.041}, {'end': 662.824, 'text': 'So how it will be generated it will be generated with the help of random modules that we have imported.', 'start': 657.061, 'duration': 5.763}, {'end': 671.708, 'text': 'So it will be n random dot random plus 1 this will actually generate a random number between 0 to 20 any doubts till here guys.', 'start': 663.224, 'duration': 8.484}, {'end': 674.079, 'text': 'All right, so no doubt still here.', 'start': 673.038, 'duration': 1.041}, {'end': 681.523, 'text': "So after that what happens, I've defined one more variable guess and I have assigned a value to it or initialize the value to it zero.", 'start': 674.499, 'duration': 7.024}, {'end': 684.327, 'text': 'All right, so now comes the while loop.', 'start': 682.386, 'duration': 1.941}, {'end': 685.687, 'text': 'Now in while loop.', 'start': 684.567, 'duration': 1.12}], 'summary': 'Imported random module, set range 0-20, generated random number using n random dot random + 1, initialized guess variable to zero, and started a while loop.', 'duration': 59.595, 'max_score': 626.092, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI626092.jpg'}, {'end': 750.607, 'src': 'embed', 'start': 727.014, 'weight': 5, 'content': [{'end': 734.478, 'text': "Now there's one more condition, that is else, which means that when the number that you have guessed is less than or equal to 0,", 'start': 727.014, 'duration': 7.464}, {'end': 738.84, 'text': 'then that means you are giving up, so it will break, it will come out of the loop and it will print.', 'start': 734.478, 'duration': 4.362}, {'end': 740.741, 'text': 'Sorry that you are giving up.', 'start': 739.201, 'duration': 1.54}, {'end': 742.883, 'text': "That's when your game gets over and you have lost it.", 'start': 740.942, 'duration': 1.941}, {'end': 747.025, 'text': 'Finally if you have guessed the correct number then it will print congratulations.', 'start': 743.623, 'duration': 3.402}, {'end': 747.765, 'text': 'You have made it.', 'start': 747.085, 'duration': 0.68}, {'end': 750.607, 'text': 'So I hope you have understood the code that I was explaining here.', 'start': 748.165, 'duration': 2.442}], 'summary': 'Explaining guessing game conditions and outcomes.', 'duration': 23.593, 'max_score': 727.014, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI727014.jpg'}, {'end': 816.99, 'src': 'embed', 'start': 792.662, 'weight': 4, 'content': [{'end': 799.484, 'text': 'You have made it now over here as you can see that it took only two iterations for me in order to guess the correct number.', 'start': 792.662, 'duration': 6.822}, {'end': 805.066, 'text': "But what if it would have taken more iterations? I mean, I'm pretty unclear how many iterations it will take for me.", 'start': 800.025, 'duration': 5.041}, {'end': 810.168, 'text': "So that is the reason why we use while loop because we don't know how many iterations are required.", 'start': 805.587, 'duration': 4.581}, {'end': 814.249, 'text': 'Now we can run this program again and I can show it to you once more.', 'start': 810.968, 'duration': 3.281}, {'end': 816.99, 'text': 'Ask a new number.', 'start': 815.69, 'duration': 1.3}], 'summary': 'It took only two iterations to guess the correct number using a while loop.', 'duration': 24.328, 'max_score': 792.662, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI792662.jpg'}], 'start': 626.092, 'title': 'Python random number generation and while loop', 'summary': 'Discusses generating a random number between 0 to 20 in python, using the random module and while loop. it explains variable definitions, logic, and program execution, highlighting the iterations and feedback involved.', 'chapters': [{'end': 662.824, 'start': 626.092, 'title': 'Random number generation in python', 'summary': 'Discusses the process of generating a random number between 0 to 20 in python using the random module and explains the variable definitions and logic involved in the process.', 'duration': 36.732, 'highlights': ['The random number generator in Python uses the imported random module to generate a number between 0 to 20.', "The variable 'n' is defined with a value of 20 to specify the range for the random number generation.", "The process involves defining a variable 'to_be_guessed' as an integer type to store the generated random number."]}, {'end': 863.173, 'start': 663.224, 'title': 'Python while loop example', 'summary': 'Explains a python program using a while loop to guess a random number between 0 to 20. it demonstrates the program execution, highlighting the iterations required to guess the number and the corresponding feedback provided.', 'duration': 199.949, 'highlights': ["The program uses a while loop to guess a random number between 0 to 20, providing feedback based on the guessed number's relation to the generated random number. Use of while loop, range of random number, feedback based on guessed number", 'The program demonstrates the iterations required to guess the correct number, showcasing the unpredictability of the number of iterations in a while loop. Unpredictability of iterations in while loop', 'The execution of the program shows the control coming out of the while loop upon guessing the correct number and providing a congratulatory message. Control flow in the while loop, congratulatory message upon correct guess']}], 'duration': 237.081, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI626092.jpg', 'highlights': ['The random number generator in Python uses the imported random module to generate a number between 0 to 20.', "The variable 'n' is defined with a value of 20 to specify the range for the random number generation.", "The process involves defining a variable 'to_be_guessed' as an integer type to store the generated random number.", "The program uses a while loop to guess a random number between 0 to 20, providing feedback based on the guessed number's relation to the generated random number.", 'The program demonstrates the iterations required to guess the correct number, showcasing the unpredictability of the number of iterations in a while loop.', 'The execution of the program shows the control coming out of the while loop upon guessing the correct number and providing a congratulatory message.']}, {'end': 1383.103, 'segs': [{'end': 900.233, 'src': 'embed', 'start': 864.525, 'weight': 0, 'content': [{'end': 868.267, 'text': 'So for loop is basically used when you know the number of iterations that are required.', 'start': 864.525, 'duration': 3.742}, {'end': 874.331, 'text': 'Unlike while loop, where you are not sure about the number of iterations that are required in for loop.', 'start': 868.848, 'duration': 5.483}, {'end': 878.474, 'text': 'you know how many times the statements that are present inside the loops need to be executed.', 'start': 874.331, 'duration': 4.143}, {'end': 884.998, 'text': 'So for loop provides you with a syntax that will include three fields basically or you can say three informations.', 'start': 879.254, 'duration': 5.744}, {'end': 893.829, 'text': 'So first will be the boolean condition then comes the initial value of the counting variable and then the incrementation of the counting variable.', 'start': 885.785, 'duration': 8.044}, {'end': 900.233, 'text': 'So, as you can see it from the syntax as well, first you write for name of the variable in the range,', 'start': 894.45, 'duration': 5.783}], 'summary': 'For loop provides syntax with boolean condition, initial value, and incrementation for known iterations.', 'duration': 35.708, 'max_score': 864.525, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI864525.jpg'}, {'end': 1049.079, 'src': 'embed', 'start': 1025.989, 'weight': 5, 'content': [{'end': 1032.951, 'text': 'Now after that I have defined a for loop which says that for a variable named fruit in fruits.', 'start': 1025.989, 'duration': 6.962}, {'end': 1038.892, 'text': 'So this will give me the range fruits will give me the range as you know that in the fruits list.', 'start': 1033.769, 'duration': 5.123}, {'end': 1040.012, 'text': 'There are only three fruits.', 'start': 1038.932, 'duration': 1.08}, {'end': 1045.176, 'text': 'So I know it will iterate only thrice first for mango then for grapes then for apple.', 'start': 1040.473, 'duration': 4.703}, {'end': 1049.079, 'text': 'So this is the difference between the while and for loop in for loop.', 'start': 1045.637, 'duration': 3.442}], 'summary': 'Demonstrates a for loop iterating through a list of three fruits.', 'duration': 23.09, 'max_score': 1025.989, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1025989.jpg'}, {'end': 1124.018, 'src': 'embed', 'start': 1090.299, 'weight': 2, 'content': [{'end': 1091.56, 'text': 'Let me go back to my slides.', 'start': 1090.299, 'duration': 1.261}, {'end': 1096.735, 'text': "So what I'm going to do in this example, I'm going to calculate the factorial.", 'start': 1093.191, 'duration': 3.544}, {'end': 1102.241, 'text': 'Now one thing to notice here guys, again in factorial also I know how many iterations are required.', 'start': 1097.195, 'duration': 5.046}, {'end': 1108.428, 'text': "Because if you see, if I'm calculating the factorial of five, and I know that I need multiplication five times.", 'start': 1102.821, 'duration': 5.607}, {'end': 1112.792, 'text': 'First I need to multiply five with four, then four with three, then three with two, and then two with one.', 'start': 1108.788, 'duration': 4.004}, {'end': 1116.074, 'text': 'So this way I require only four iterations.', 'start': 1113.573, 'duration': 2.501}, {'end': 1118.395, 'text': 'So I know the number of iterations required.', 'start': 1116.594, 'duration': 1.801}, {'end': 1124.018, 'text': "So it's a very good example in order to show you where we should use while loop and where we should use for loop.", 'start': 1118.796, 'duration': 5.222}], 'summary': 'Example of calculating factorial using 4 iterations for loop vs while loop', 'duration': 33.719, 'max_score': 1090.299, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1090299.jpg'}, {'end': 1385.884, 'src': 'heatmap', 'start': 1355.636, 'weight': 0.707, 'content': [{'end': 1358.016, 'text': 'So it prints 24, which is absolutely correct.', 'start': 1355.636, 'duration': 2.38}, {'end': 1360.857, 'text': 'So any doubts till here guys, you can ask me.', 'start': 1359.097, 'duration': 1.76}, {'end': 1363.738, 'text': 'All right, no doubt.', 'start': 1363.098, 'duration': 0.64}, {'end': 1366.719, 'text': "So we'll move forward and we'll see what are nested loops in Python.", 'start': 1363.798, 'duration': 2.921}, {'end': 1371.379, 'text': 'So Python basically allows us to use a loop inside another loop.', 'start': 1367.677, 'duration': 3.702}, {'end': 1377.261, 'text': 'For example, you can use a for loop inside a for loop or you can use a while loop inside a while loop.', 'start': 1372.019, 'duration': 5.242}, {'end': 1383.103, 'text': 'And at the same time you can use a while loop inside a for loop as well and a for loop inside a while loop as well.', 'start': 1377.901, 'duration': 5.202}, {'end': 1385.884, 'text': 'So that is basically what is called nested loops.', 'start': 1383.683, 'duration': 2.201}], 'summary': 'Python allows nested loops, such as for inside for or while inside while.', 'duration': 30.248, 'max_score': 1355.636, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1355636.jpg'}, {'end': 1392.627, 'src': 'embed', 'start': 1363.098, 'weight': 1, 'content': [{'end': 1363.738, 'text': 'All right, no doubt.', 'start': 1363.098, 'duration': 0.64}, {'end': 1366.719, 'text': "So we'll move forward and we'll see what are nested loops in Python.", 'start': 1363.798, 'duration': 2.921}, {'end': 1371.379, 'text': 'So Python basically allows us to use a loop inside another loop.', 'start': 1367.677, 'duration': 3.702}, {'end': 1377.261, 'text': 'For example, you can use a for loop inside a for loop or you can use a while loop inside a while loop.', 'start': 1372.019, 'duration': 5.242}, {'end': 1383.103, 'text': 'And at the same time you can use a while loop inside a for loop as well and a for loop inside a while loop as well.', 'start': 1377.901, 'duration': 5.202}, {'end': 1385.884, 'text': 'So that is basically what is called nested loops.', 'start': 1383.683, 'duration': 2.201}, {'end': 1389.586, 'text': "Now we'll have a look at the example of nested loops as well, don't worry.", 'start': 1386.485, 'duration': 3.101}, {'end': 1392.627, 'text': 'So let us move forward and see one example of nested loops.', 'start': 1389.906, 'duration': 2.721}], 'summary': 'Python allows nested loops, enabling usage of one loop inside another loop. can use for loop inside for loop, while loop inside while loop, while loop inside for loop, and for loop inside while loop.', 'duration': 29.529, 'max_score': 1363.098, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1363098.jpg'}], 'start': 864.525, 'title': 'Python looping concepts', 'summary': 'Explains for loops in python, illustrating their use with a fruit list example. it also showcases a factorial calculation example using for loops and nested loops.', 'chapters': [{'end': 1070.064, 'start': 864.525, 'title': 'Understanding for loops in python', 'summary': 'Explains the concept of for loops in python, highlighting that for loops are used when the number of iterations is known, and gives an example of iterating through a list of fruits, demonstrating how for loops work and differ from while loops.', 'duration': 205.539, 'highlights': ['For loop is used when you know the number of iterations that are required, unlike while loop. Number of iterations known, unlike while loop', 'For loop syntax includes a boolean condition, initial value of the counting variable, and the incrementation of the counting variable. Syntax components: boolean condition, initial value, incrementation', 'Demonstrates the process of using a for loop to iterate through a list of fruits: mango, grapes, and apple. Example of using for loop to iterate through a list of fruits']}, {'end': 1383.103, 'start': 1070.804, 'title': 'Python looping and factorial example', 'summary': 'Covers the concept of loops in python, specifically showcasing an example of calculating the factorial using a for loop, detailing the iterative process, and demonstrating the use of nested loops.', 'duration': 312.299, 'highlights': ['The chapter covers the concept of loops in Python, specifically showcasing an example of calculating the factorial using a for loop, detailing the iterative process, and demonstrating the use of nested loops.', 'The example demonstrates the calculation of the factorial, showcasing the iterative process and the logic behind the use of a for loop, with a specific example of finding the factorial of a number.', 'The instructor explains the use of nested loops in Python, allowing for the use of a loop inside another loop, whether it be a for loop inside a for loop, a while loop inside a while loop, or combinations of while and for loops inside each other.']}], 'duration': 518.578, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI864525.jpg', 'highlights': ['For loop is used when you know the number of iterations that are required, unlike while loop. Number of iterations known, unlike while loop', 'The chapter covers the concept of loops in Python, specifically showcasing an example of calculating the factorial using a for loop, detailing the iterative process, and demonstrating the use of nested loops.', 'The example demonstrates the calculation of the factorial, showcasing the iterative process and the logic behind the use of a for loop, with a specific example of finding the factorial of a number.', 'For loop syntax includes a boolean condition, initial value of the counting variable, and the incrementation of the counting variable. Syntax components: boolean condition, initial value, incrementation', 'The instructor explains the use of nested loops in Python, allowing for the use of a loop inside another loop, whether it be a for loop inside a for loop, a while loop inside a while loop, or combinations of while and for loops inside each other.', 'Demonstrates the process of using a for loop to iterate through a list of fruits: mango, grapes, and apple. Example of using for loop to iterate through a list of fruits']}, {'end': 1778.275, 'segs': [{'end': 1420.645, 'src': 'embed', 'start': 1383.683, 'weight': 0, 'content': [{'end': 1385.884, 'text': 'So that is basically what is called nested loops.', 'start': 1383.683, 'duration': 2.201}, {'end': 1389.586, 'text': "Now we'll have a look at the example of nested loops as well, don't worry.", 'start': 1386.485, 'duration': 3.101}, {'end': 1392.627, 'text': 'So let us move forward and see one example of nested loops.', 'start': 1389.906, 'duration': 2.721}, {'end': 1398.55, 'text': "Now over here what I'm going to do is I'm going to write a code in order to simulate a bank ATM.", 'start': 1393.287, 'duration': 5.263}, {'end': 1399.631, 'text': 'All right.', 'start': 1399.35, 'duration': 0.281}, {'end': 1403.053, 'text': "So for that I'm going to use nested while loop.", 'start': 1400.031, 'duration': 3.022}, {'end': 1403.773, 'text': 'and what will happen?', 'start': 1403.053, 'duration': 0.72}, {'end': 1408.977, 'text': 'first you need to enter the four digit pin and then you can perform the following functions', 'start': 1403.773, 'duration': 5.204}, {'end': 1414.621, 'text': "You can check the balance, you can make a withdrawal, you can deposit some money and you can, even if you don't want to do anything,", 'start': 1408.997, 'duration': 5.624}, {'end': 1416.522, 'text': 'you can tell the machine to return your card as well.', 'start': 1414.621, 'duration': 1.901}, {'end': 1418.964, 'text': 'So let me show you how it is done.', 'start': 1417.503, 'duration': 1.461}, {'end': 1420.645, 'text': "I'll open my PyCharm once more.", 'start': 1419.104, 'duration': 1.541}], 'summary': 'The transcript covers an example of nested loops in a bank atm simulation using a four-digit pin and various functions.', 'duration': 36.962, 'max_score': 1383.683, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1383683.jpg'}, {'end': 1634.019, 'src': 'heatmap', 'start': 1506.809, 'weight': 3, 'content': [{'end': 1512.976, 'text': 'in order to pay in some cash or you need to deposit something you need to press three or you want your card back you need to press four.', 'start': 1506.809, 'duration': 6.167}, {'end': 1515.279, 'text': 'So these are the four options that will be given to you.', 'start': 1513.477, 'duration': 1.802}, {'end': 1519.163, 'text': 'So when you choose option one it will print the account balance.', 'start': 1516.08, 'duration': 3.083}, {'end': 1524.49, 'text': 'So over here as you can see that your account balance is and the balance that is there in your account.', 'start': 1519.824, 'duration': 4.666}, {'end': 1528.06, 'text': "After that, it'll ask you for restart.", 'start': 1525.518, 'duration': 2.542}, {'end': 1529.921, 'text': 'So you need to input that value.', 'start': 1528.38, 'duration': 1.541}, {'end': 1532.783, 'text': "So that'll say would you like to go back?", 'start': 1530.561, 'duration': 2.222}, {'end': 1539.807, 'text': "And if your restart value lies in this particular tuple, then it'll break and it'll print a thank you statement.", 'start': 1533.403, 'duration': 6.404}, {'end': 1549.673, 'text': 'But if you want to continue or you want to go back, then you can press anything else apart from small n, n o, or this no, or capital N.', 'start': 1540.387, 'duration': 9.286}, {'end': 1555.483, 'text': "So if you press any other button apart from these, it'll actually go back and in the while statement, as you can see,", 'start': 1550.239, 'duration': 5.244}, {'end': 1557.004, 'text': 'it says that it is not present here.', 'start': 1555.483, 'duration': 1.521}, {'end': 1559.666, 'text': 'So it will give you all these four options once more.', 'start': 1557.385, 'duration': 2.281}, {'end': 1561.608, 'text': "So I hope I'm clear till here.", 'start': 1560.407, 'duration': 1.201}, {'end': 1564.971, 'text': 'If you have any doubts till here you can ask me any doubts guys.', 'start': 1561.668, 'duration': 3.303}, {'end': 1566.031, 'text': 'All right.', 'start': 1565.771, 'duration': 0.26}, {'end': 1566.512, 'text': 'So it is clear.', 'start': 1566.071, 'duration': 0.441}, {'end': 1571.507, 'text': 'Now, after that, what if you choose the another option in which you need to make a withdrawal?', 'start': 1567.566, 'duration': 3.941}, {'end': 1573.848, 'text': 'So for that, what will happen?', 'start': 1572.187, 'duration': 1.661}, {'end': 1577.669, 'text': 'you need to enter the amount that you would write to withdraw, which can be a float number.', 'start': 1573.848, 'duration': 3.821}, {'end': 1579.049, 'text': 'It cannot be an integer number.', 'start': 1577.689, 'duration': 1.36}, {'end': 1580.189, 'text': "So that's why I've used float here.", 'start': 1579.069, 'duration': 1.12}, {'end': 1587.547, 'text': 'So you need to enter that value and once you enter that value, it will check whether it is in this particular list or not, that is, 10, 20, 40, 60,', 'start': 1580.87, 'duration': 6.677}, {'end': 1589.532, 'text': '80 or 100..', 'start': 1587.547, 'duration': 1.985}, {'end': 1594.135, 'text': 'Now by default it will give restart why because you need to enter the amount once more.', 'start': 1589.532, 'duration': 4.603}, {'end': 1597.637, 'text': 'So again it will go back and it will give you all four options.', 'start': 1594.715, 'duration': 2.922}, {'end': 1602.679, 'text': 'So you can choose that withdrawal option again and you can choose a number which is present in this particular list.', 'start': 1597.997, 'duration': 4.682}, {'end': 1610.924, 'text': 'Now when you choose withdrawal equal to equal to 1 at that time it will again ask you please enter the desired amount.', 'start': 1603.56, 'duration': 7.364}, {'end': 1613.724, 'text': 'So this is for option two.', 'start': 1612.003, 'duration': 1.721}, {'end': 1618.706, 'text': 'Now when we talk about option three, it is pretty much similar to the couple of options that we have discussed before.', 'start': 1614.004, 'duration': 4.702}, {'end': 1620.327, 'text': 'So it is pretty much similar to that.', 'start': 1619.166, 'duration': 1.161}, {'end': 1626.55, 'text': 'Over here again, whatever the amount is that you want to pay in how much amount that you would like to pay and balance,', 'start': 1620.967, 'duration': 5.583}, {'end': 1628.331, 'text': 'plus the amount that you are depositing.', 'start': 1626.55, 'duration': 1.781}, {'end': 1634.019, 'text': "So it'll print the balance that will be equal to balance plus the amount that you're depositing again.", 'start': 1628.991, 'duration': 5.028}], 'summary': 'The transcript explains a program with options for account balance, withdrawal, and deposit, requiring specific inputs for each action.', 'duration': 127.21, 'max_score': 1506.809, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1506809.jpg'}, {'end': 1594.135, 'src': 'embed', 'start': 1567.566, 'weight': 2, 'content': [{'end': 1571.507, 'text': 'Now, after that, what if you choose the another option in which you need to make a withdrawal?', 'start': 1567.566, 'duration': 3.941}, {'end': 1573.848, 'text': 'So for that, what will happen?', 'start': 1572.187, 'duration': 1.661}, {'end': 1577.669, 'text': 'you need to enter the amount that you would write to withdraw, which can be a float number.', 'start': 1573.848, 'duration': 3.821}, {'end': 1579.049, 'text': 'It cannot be an integer number.', 'start': 1577.689, 'duration': 1.36}, {'end': 1580.189, 'text': "So that's why I've used float here.", 'start': 1579.069, 'duration': 1.12}, {'end': 1587.547, 'text': 'So you need to enter that value and once you enter that value, it will check whether it is in this particular list or not, that is, 10, 20, 40, 60,', 'start': 1580.87, 'duration': 6.677}, {'end': 1589.532, 'text': '80 or 100..', 'start': 1587.547, 'duration': 1.985}, {'end': 1594.135, 'text': 'Now by default it will give restart why because you need to enter the amount once more.', 'start': 1589.532, 'duration': 4.603}], 'summary': 'Demonstrates withdrawal process, allowing float input, with restart for incorrect values.', 'duration': 26.569, 'max_score': 1567.566, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1567566.jpg'}, {'end': 1680.532, 'src': 'embed', 'start': 1654.999, 'weight': 4, 'content': [{'end': 1659.6, 'text': 'then it will print that incorrect password and it will decrease the chances by 1..', 'start': 1654.999, 'duration': 4.601}, {'end': 1665.861, 'text': 'So earlier you had three chances if you press the incorrect pin once it will decrease your chance and it will make it as 2.', 'start': 1659.6, 'duration': 6.261}, {'end': 1672.168, 'text': 'Again if you write the incorrect password then again it will make it as chances equals to chances minus 1 which will become 1.', 'start': 1665.861, 'duration': 6.307}, {'end': 1675.99, 'text': 'And if the third time also you do the same thing, then their chances will become zero.', 'start': 1672.168, 'duration': 3.822}, {'end': 1678.251, 'text': 'and the moment it becomes zero, then it will print.', 'start': 1675.99, 'duration': 2.261}, {'end': 1679.551, 'text': 'no more tries break.', 'start': 1678.251, 'duration': 1.3}, {'end': 1680.532, 'text': "It'll come out of the loop.", 'start': 1679.712, 'duration': 0.82}], 'summary': 'Incorrect password decreases chances, 3 chances reduced to 0.', 'duration': 25.533, 'max_score': 1654.999, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1654999.jpg'}, {'end': 1784.479, 'src': 'embed', 'start': 1755.392, 'weight': 5, 'content': [{'end': 1757.973, 'text': "How much amount that I would like to deposit? I'll say 10.", 'start': 1755.392, 'duration': 2.581}, {'end': 1761.57, 'text': 'So my balance became again 67.14.', 'start': 1757.973, 'duration': 3.597}, {'end': 1768.012, 'text': "Again, it is asking me, would you like to go back? No, I don't wanna go back, so I can type in N, so yep.", 'start': 1761.57, 'duration': 6.442}, {'end': 1772.393, 'text': 'So it says thank you, and again asking me for a four-digit PIN.', 'start': 1768.752, 'duration': 3.641}, {'end': 1775.414, 'text': 'So let me show you what happens if I write the incorrect PIN.', 'start': 1772.933, 'duration': 2.481}, {'end': 1778.275, 'text': 'Say if I write 111, incorrect PIN.', 'start': 1775.434, 'duration': 2.841}, {'end': 1781.356, 'text': 'If I write that PIN again, again incorrect.', 'start': 1778.415, 'duration': 2.941}, {'end': 1784.479, 'text': 'Again incorrect, so we have no more tries.', 'start': 1782.717, 'duration': 1.762}], 'summary': 'Deposited $10, balance now at $67.14. incorrect pin entered thrice.', 'duration': 29.087, 'max_score': 1755.392, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1755392.jpg'}], 'start': 1383.683, 'title': 'Atm simulation and transaction process', 'summary': 'Discusses nested loops and presents an example of simulating a bank atm with functions like checking balance, making withdrawals, and depositing money, while also explaining the atm transaction process including pin verification, options for balance check, withdrawal, deposit, and handling incorrect pin with a total of 3 chances.', 'chapters': [{'end': 1635.24, 'start': 1383.683, 'title': 'Nested loops and bank atm simulation', 'summary': 'Discusses the concept of nested loops and presents a detailed example of using nested while loops to simulate a bank atm, allowing the user to perform various functions like checking balance, making withdrawals, and depositing money, with a limited number of chances to enter the correct pin.', 'duration': 251.557, 'highlights': ['The chapter explains the concept of nested loops and provides an example of using nested while loops to simulate a bank ATM, allowing the user to perform functions like checking balance, making withdrawals, and depositing money. The detailed example of using nested while loops to simulate a bank ATM, allowing the user to perform various functions like checking balance, making withdrawals, and depositing money.', 'The user has three chances to enter the correct pin to access the bank ATM, and after entering the correct pin, they can choose from four options: checking balance, making a withdrawal, depositing money, or returning the card. The user is limited to three chances to enter the correct pin, and after entering the correct pin, they can choose from four options: checking balance, making a withdrawal, depositing money, or returning the card.', 'When making a withdrawal, the user needs to enter the desired amount, which must be a float number and present in a specific list, and they have the option to restart the process if the entered amount is not valid. When making a withdrawal, the user needs to enter a float number from a specific list and has the option to restart the process if the entered amount is not valid.']}, {'end': 1778.275, 'start': 1635.341, 'title': 'Atm transaction process', 'summary': 'Explains the process of atm transaction including pin verification, options for balance check, withdrawal, deposit, and handling incorrect pin with a total of 3 chances.', 'duration': 142.934, 'highlights': ['The ATM provides four options: balance check, withdrawal, deposit, and return card. The ATM user is presented with four options: balance check, withdrawal, deposit, and return card.', 'Incorrect PIN entry decreases chances by 1, with a total of 3 chances before locking the card. Entering an incorrect PIN decreases the chances by 1, with a total of 3 chances before the card is locked.', 'Balance check shows a balance of 67.14 and allows the user to go back or proceed with other options. The balance check option shows a balance of 67.14 and provides the choice to go back or proceed with other options.']}], 'duration': 394.592, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1383683.jpg', 'highlights': ['The chapter explains the concept of nested loops and provides an example of using nested while loops to simulate a bank ATM, allowing the user to perform functions like checking balance, making withdrawals, and depositing money.', 'The user has three chances to enter the correct pin to access the bank ATM, and after entering the correct pin, they can choose from four options: checking balance, making a withdrawal, depositing money, or returning the card.', 'When making a withdrawal, the user needs to enter the desired amount, which must be a float number and present in a specific list, and they have the option to restart the process if the entered amount is not valid.', 'The ATM provides four options: balance check, withdrawal, deposit, and return card.', 'Incorrect PIN entry decreases chances by 1, with a total of 3 chances before locking the card.', 'Balance check shows a balance of 67.14 and allows the user to go back or proceed with other options.']}, {'end': 2412.221, 'segs': [{'end': 1826.343, 'src': 'embed', 'start': 1797.293, 'weight': 0, 'content': [{'end': 1801.197, 'text': "Now let me go back to my presentation and I'll show you an example of for loop as well.", 'start': 1797.293, 'duration': 3.904}, {'end': 1803.747, 'text': 'So this is an example of nested for loop.', 'start': 1801.886, 'duration': 1.861}, {'end': 1810.792, 'text': "So over here what I'm going to do is I'm going to write a code in order to print the Pythagorean number between a particular range.", 'start': 1804.208, 'duration': 6.584}, {'end': 1820.599, 'text': 'So what happens is suppose if I want to enter the number 20, that means I want the Pythagorean numbers between one to 20.', 'start': 1811.553, 'duration': 9.046}, {'end': 1826.343, 'text': 'So Pythagorean numbers are nothing but the integers which satisfy a squared plus b squared is equals to c squared.', 'start': 1820.599, 'duration': 5.744}], 'summary': 'Demonstrating nested for loop to find pythagorean numbers within a specified range.', 'duration': 29.05, 'max_score': 1797.293, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1797293.jpg'}, {'end': 2383.58, 'src': 'embed', 'start': 2339.597, 'weight': 2, 'content': [{'end': 2344.119, 'text': 'in which I showed you two methods the one is manual and the another one in which you are using loops.', 'start': 2339.597, 'duration': 4.522}, {'end': 2350.601, 'text': 'After that I told you what exactly are loops and we saw various types of loops in Python namely while, for and nested.', 'start': 2344.919, 'duration': 5.682}, {'end': 2352.903, 'text': 'Then we focus on each of these loops.', 'start': 2351.101, 'duration': 1.802}, {'end': 2356.746, 'text': 'We started with while loop and I explained you where to use while loop.', 'start': 2353.063, 'duration': 3.683}, {'end': 2358.607, 'text': 'I gave you two examples of while loop.', 'start': 2356.846, 'duration': 1.761}, {'end': 2360.208, 'text': 'Similarly for for loop.', 'start': 2359.027, 'duration': 1.181}, {'end': 2366.013, 'text': 'I explained what exactly is for loop how it works its syntax and two examples again for for loop.', 'start': 2360.268, 'duration': 5.745}, {'end': 2373.179, 'text': "When you talk about nested loops again, I've explained you the syntax how to use it and I've given you three examples for nested loop as well.", 'start': 2366.573, 'duration': 6.606}, {'end': 2382.859, 'text': "And I've told you earlier as well that your assignment your assignment is to write a code in which you are using a while loop inside a for loop.", 'start': 2373.775, 'duration': 9.084}, {'end': 2383.58, 'text': 'All right.', 'start': 2383.28, 'duration': 0.3}], 'summary': 'The tutorial covered manual and loop methods, explaining while, for, and nested loops in python, providing examples and an assignment.', 'duration': 43.983, 'max_score': 2339.597, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI2339597.jpg'}], 'start': 1778.415, 'title': 'Nested loops in python', 'summary': 'Demonstrates the concept of nested while and for loops in python, illustrating the process of finding and printing pythagorean numbers using a nested for loop, along with the logic and code behind it. it also covers the implementation of nested loops in python, including a pythagorean number finder and the use of a for loop inside a while loop for bulk train ticket reservations. it provides a recap of the topics covered, such as the types of loops in python and their syntax, with examples and a call for a specific assignment.', 'chapters': [{'end': 1992.421, 'start': 1778.415, 'title': 'Nested loops and pythagorean numbers', 'summary': 'Demonstrates the concept of nested while and for loops, explaining the nested while loop example and illustrating the process of finding and printing pythagorean numbers using a nested for loop, along with the logic and code behind it.', 'duration': 214.006, 'highlights': ['The chapter demonstrates the concept of nested while and for loops. The transcript introduces the concept of nested while and for loops as part of the programming example.', 'Illustrating the process of finding and printing Pythagorean numbers using a nested for loop. The speaker explains the process of finding and printing Pythagorean numbers using a nested for loop, demonstrating the logic and code behind it.', 'Explaining the nested while loop example. The speaker provides an example of a nested while loop and explains its functionality, including the concept of exceeding chances and the loop termination.']}, {'end': 2412.221, 'start': 1993.317, 'title': 'Nested loop example and summary', 'summary': 'Demonstrates the implementation of nested loops in python, including a pythagorean number finder and the use of a for loop inside a while loop for bulk train ticket reservations. it also provides a recap of the topics covered, such as the types of loops in python and their syntax, with examples and a call for a specific assignment.', 'duration': 418.904, 'highlights': ['The chapter demonstrates the implementation of nested loops in Python, including a Pythagorean number finder and the use of a for loop inside a while loop for bulk train ticket reservations. It explains the logic and implementation of finding Pythagorean numbers using nested loops and demonstrates the use of a for loop inside a while loop for bulk train ticket reservations.', 'It also provides a recap of the topics covered, such as the types of loops in Python and their syntax, with examples and a call for a specific assignment. The chapter summarizes the covered topics, including types of loops in Python, their syntax, and provides examples. It also mentions a specific assignment involving a while loop inside a for loop.']}], 'duration': 633.806, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/zFvoXxeoosI/pics/zFvoXxeoosI1778415.jpg', 'highlights': ['Illustrating the process of finding and printing Pythagorean numbers using a nested for loop. The speaker explains the process of finding and printing Pythagorean numbers using a nested for loop, demonstrating the logic and code behind it.', 'The chapter demonstrates the implementation of nested loops in Python, including a Pythagorean number finder and the use of a for loop inside a while loop for bulk train ticket reservations. It explains the logic and implementation of finding Pythagorean numbers using nested loops and demonstrates the use of a for loop inside a while loop for bulk train ticket reservations.', 'The chapter demonstrates the concept of nested while and for loops. The transcript introduces the concept of nested while and for loops as part of the programming example.', 'It also provides a recap of the topics covered, such as the types of loops in Python and their syntax, with examples and a call for a specific assignment. The chapter summarizes the covered topics, including types of loops in Python, their syntax, and provides examples. It also mentions a specific assignment involving a while loop inside a for loop.']}], 'highlights': ['The chapter includes explanations and examples for while, for, and nested loops in Python.', 'Loops in software development are important for efficiency and reducing code complexity, as shown through the example of payroll processing, where the repetitive logic for each employee is compared to using loop structures.', 'The random number generator in Python uses the imported random module to generate a number between 0 to 20.', 'For loop is used when you know the number of iterations that are required, unlike while loop. Number of iterations known, unlike while loop', 'The chapter explains the concept of nested loops and provides an example of using nested while loops to simulate a bank ATM, allowing the user to perform functions like checking balance, making withdrawals, and depositing money.', 'Illustrating the process of finding and printing Pythagorean numbers using a nested for loop. The speaker explains the process of finding and printing Pythagorean numbers using a nested for loop, demonstrating the logic and code behind it.']}