Advertisements
Advertisements
प्रश्न
Write the syntax of the while loop.
Advertisements
उत्तर
The syntax of while loop in Python has the following syntax:
Syntax:
while:
statements block 1
[else:
statements block 2]
APPEARS IN
संबंधित प्रश्न
How many important control structures are there in Python?
Elif can be considered to be the abbreviation of ______.
The condition in the if statement should be in the form of ______
What is the output of the following snippet?
i=1
while True:
if i%3 ==0:
break
print(i,end='')
i +=1
List the control structures in Python.
Write a note on the range () in the loop?
Write a program to display.
A
A B
A B C
A B C D
A B C D E
Using if..else..Elif statement writes a suitable program to display the largest of 3 numbers.
List the differences between break and continue statements.
Write a detail note on for loop?
