+1 vote
in Class 12 by kratos

Rectify the error (if any) in the given statements. >>>str = “Hello World”

>>>str[5] = ‘p’

1 Answer

+6 votes
by kratos
 
Best answer

Strings are immutable. So convert to 2.

list > > >* = list (str)’p’)

>>* [5]=’p’

...