Python-Quizzes | Python Tuples Quiz | Question 6

Last Updated :
Discuss
Comments

What is the output of the following program?

Python
s = 'geeks' 
a, b, c, d, e = s 
b = c = '*'
s = (a, b, c, d, e) 
print(s) 

(‘g’, ‘*’, ‘*’, ‘k’, ‘s’)

(‘g’, ‘e’, ‘e’, ‘k’, ‘s’)

(‘geeks’, ‘*’, ‘*’)

KeyError

Share your thoughts in the comments