1.

Rectify the error (if any) in the given statements. >>>str = “Hello World” >>>str[5] = ‘p’

Answer» Strings are immutable. So convert to 2.

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

>>s [5]=’p’


Discussion

No Comment Found