Advertisements
Advertisements
Question
What is the output of the following snippet?
T=1
while T:
print(True)
break
Options
False
True
0
1
MCQ
Advertisements
Solution
True
shaalaa.com
Control Structure
Is there an error in this question or solution?
APPEARS IN
RELATED QUESTIONS
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 ______
Which is the most comfortable loop?
Which amongst this is not a jump statement?
Write a note on the break statement.
Using if..else..Elif statement writes a suitable program to display the largest of 3 numbers.
Write the syntax of the while loop.
Write a detailed note on if..else..elif statement with suitable example.
Write a program to display all 3 digit odd numbers.
