So this is a video about the basics of while true loops in python! The first episode of Learning Python. My programming software: code.visualstu... Visual Studio Code Thanks for watching!
while True: construct does not explicitly contain a condition written after the while statement. In this case, the True serves as an implicit condition that keeps the loop running indefinitely until a break statement is encountered within the loop. This means that no additional condition is written after the while True: statement in the code.
I'm successfully using this in several programs, but I still have no clue how it works! While WHAT is true?! How can 'while' even BE true or false without an actual boolean statement?
True is representational to the programs status: Imagine it more like this: While 'the program is running (Aka True - Being the status of the program)' do
Thank you for this video, you are so good at coding and explaining as well. But I advise you to well prepare before recording because your video is full of empty words like "mmmm, something like, etc...