What is the output of the following code snippet:
count = 0
while count < 3:
print("Hello")
count += 1
while count < 3:
print("Hello")
count += 1
A. Hello
Hello
B. Hello
Hello
Hello
C. 0
1
2
D. It enters an infinite loop
Answer: Option B

Join The Discussion