Write a Python program to create a bytearray from a list.
1 2 3 4 5 6 |
print() nums = [10, 20, 56, 35, 17, 99] # Create bytearray from list of integers. values = bytearray(nums) for x in values: print(x) print() |
1 2 3 4 5 6 |
print() nums = [10, 20, 56, 35, 17, 99] # Create bytearray from list of integers. values = bytearray(nums) for x in values: print(x) print() |