Given a string s = “Welcome”, which of the following code is incorrect?
(A) print s
(B) print s.lower()
(C) s = ‘r’
(D) print s.strip()
Explanation: strings are immutable in Python
Quiz of this Question
Please comment below if you find anything wrong in the above post
Attention reader! Don’t stop learning now. Get hold of all the important DSA concepts with the DSA Self Paced Course at a student-friendly price and become industry ready.