Search posts, tags, users, and pages
Bright Andoh
|Mastering python🧠|Aspiring Data Scientist 📊|Game Enthusiast🎮|Robotics🦾
DAY 2: for loops for definite, (counted) iteration. In today's episode, we are looking at for loops. For loops as we use in Python are used for iterating through lists unlike while loops which are indefinite. The use of various keywords such as break...
Adoo Darko Jonathan
robotics | software engineering
So, for the second part, what if 20 wasn't the first item in the list? What happens?
The loop gets broken immediately because the first condition is not met and if the first condition doesn’t work whole code wouldn’t function. Hope this helped .
Oh yeahBright Andoh
Adoo Darko Jonathan
robotics | software engineering
So, for the second part, what if 20 wasn't the first item in the list? What happens?