- A TypeError
- B Today is a nice day
- C SyntaxError
- D Today is not a nice day
- Share this MCQ
Answer:
A
Share this MCQ
TypeError
--------------------------------------------------------------------------- TypeError Traceback (most recent call last) Input In [86], inClick me to Read more Question & Answer of Python String MCQ() 1 x = 'Today is a nice day' ----> 2 x[9] = 'not ' 3 print(x) TypeError: 'str' object does not support item assignment --------------------------------------------------------------------------- |
Share this MCQ