I was reading about bytes and byte array's. I read that byte arrays mutable types!
so, when i am trying to modify it i am getting an error saying integer is required Am i missing something here? The following is my code and the error
z=bytearray("hello world","utf-8")
z[0] ="H"
i got the following error
TypeError Traceback (most recent call last) in () ----> 1 z[0]="H"
TypeError: an integer is required
z[0] = ord('H')?