?
What will be the output of the following Python code?
What will be the output of the following Python code?
x = "abcdef"
i = "a"
while i in x:
x = x[:-1]
print(i, end = " ")
x = "abcdef"
i = "a"
while i in x:
x = x[:-1]
print(i, end = " ")
Join the Discussion
Login to post a comment or share your explanation.
Login