Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

Python-Quizzes | Miscellaneous | Question 7

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

Given a string s = “Welcome”, which of the following code is incorrect?
(A) print s[0]
(B) print s.lower()
(C) s[1] = ‘r’
(D) print s.strip()


Answer: (C)

Explanation: strings are immutable in Python

Quiz of this Question
Please comment below if you find anything wrong in the above post

My Personal Notes arrow_drop_up
Last Updated : 28 Jun, 2021
Like Article
Save Article
Similar Reads