How to append integers to bytearray in Python

1 Answer

0 votes
ba = bytearray()

ba.append(0)
ba.append(97)
ba.append(122)

for i in ba: print(i)



    
'''
run:
  
0
97
122
     
'''

 



answered Sep 15, 2020 by avibootz

Related questions

...