Lecture # 11 - While Loop
Feb 19, 2024 · 1 min read · while Loop: In Python, a while loop is used to execute a block of code repeatedly as long as a specified condition is true. Syntax: while condition: #Code to be executed repeatedly as long as the condition is true Example: i = 1 num = int(input(...
Join discussion


