CBSE Class 10 Computer Applications
Question 21 of 26
Python Conditionals and Loops — Question 12
Back to all questions 12
Question Question 9(a)
Predict the output of the following code fragments :
count = 0
while count < 10:
print "Hello"
count += 1 Output
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Hello
Explanation
The while loop executes 10 times so "Hello" is printed 10 times.