Quick Quiz!

1

What would the output of the following code be?

y = ("abc", "def", "ghi")
y[2][2] = ("j")
print(y)
A)
('abc', 'def', 'ghj')
B)
('abc', 'def', 'ghi')
C)
TypeError: 'tuple' object does not support item assignment
D)
TypeError: 'str' object does not support item assignment
Question 1 of 30 attempted

Get hands-on with 1200+ tech skills courses.