I am trying to compile :
new_value = int(1500).to_bytes(2, byteorder='little')
but it throws error in Python 3.5 and 3.8.
I am new in python and couldn't find an explanation on this. And also how to read a data from object array
Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It only takes a minute to sign up.Sign up to join this community