Discussion :: Python MCQs
-
What is the output of the following?x = 'abcd'for i in range(len(x)):x[i].upper()print (x)
Answer : Option A
Explanation :
Changes do not happen in-place, rather a new instance of the string is returned.
Be The First To Comment