Loops in Python: For loop and while loop | python for beginners | python full course
Krishna The Maker
In Python, there are several ways to perform repetitive operations, including using loops. Loops are an essential part of programming and are used to perform operations on a sequence of items multiple times.
for
loop: A for
loop is used to iterate over a sequence of items, such as a list or a tuple. The loop iterates over each item in the sequence, and the code inside the loop is executed once for each item.
while
loop: A while
loop is used to repeat a block of code as long as a certain condition is true. The loop continues to execute the code as long as the condition is true
"we use only these 2 loops only no do while or for each blah blah!!"
š Welcome to the Ultimate Python Journey with KGrebel_official !! š š Connect and Engage: Got questions? Looking for coding support or just want to connect with fellow learners? Join our vibrant community on Telegram - https://t.me/+9FT6frCMfXw5Mzc1 .
Full Stack Web Development Tutorials in Hindi Playlist https://www.youtube.com/playlist?list=PL1DsB_Om8LWptrKolY2jEiV8qYTKy4sST
⢠ā Full stack web development Hindi Tutorials
Official Website
Follow us on Facebook
Follow us on Twitter
#Python, #PythonTutorials, #PythonProgramming ... https://www.youtube.com/watch?v=cmuSh585zlg
26398081 Bytes