MCQs > IT & Programming > Python > Given str='code', what will be the result of the expression str[0] = 'm'?

Python MCQs

Given str="code", what will be the result of the expression str[0] = 'm'?

Answer

Correct Answer: A TypeError. Strings in Python are immutable.

Explanation:

Note: This Question is unanswered, help us to find answer for this one

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it

search

Python Skill Assessment

Overall Skill Level-Poor

Your Skill Level: Poor

Retake Quizzes to improve it