What is the output of the following Python code snippet?
x, y = 'ab'
print(x)
print(x)
Correct answer
D. a
7 views
D. a
7 views
Tuple unpacking from a string.
Asked in: Python Interview Basics
https://docs.python.org/3/tutorial/introduction.htmlNot sure why the answer is D? Ask here and get an explanation.