Class - 12 CBSE Computer Science Important Output Questions 2025
Predict the output of the following code fragments:
x = 'one'
y = 'two'
counter = 0
while counter < len(x):
print(x[counter], y[counter])
counter += 1
Python
Python Funda
14 Likes
Answer
o t
n w
e o
Working
Inside the while loop, each letter of x and y is accessed one by one and printed.
Answered By
3 Likes