Question
What is the output of the following?x = 'abcd'for i in range(len(x)): x[i].upper()print (x)
Answer: Option A
Was this answer helpful ?
Changes do not happen in-place, rather a new instance of the string is returned.
Was this answer helpful ?
Submit Solution