Q.1.
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x[:-1]: print(i, end = " ")
Q.2.
What will be the output of the following Python code? i = 0 while i < print(i) i += 1 if i == break else: print(0)
Q.3.
What will be the output of the following Python code? i = 0 while i < print(i) i += 1 else: print(0)
Q.4.
What will be the output of the following Python code? x = "abcdef" while i in x: print(i, end=" ")
Q.5.
What will be the output of the following Python code? x = "abcdef" i = "i" while i in x: print(i, end=" ")
Q.6.
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x: print(i, end = " ")
Q.7.
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x: print('i', end = " ")
Q.8.
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x: x = x[:- print(i, end = " ")
Q.9.
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x: x = x[1:] print(i, end = " ")
Q.10.
What will be the output of the following Python code? x = "abcdef" i = "a" while i in x[1:]: print(i, end = " ")