micropython/tests/basics/bytes_compare2.py

6 lines
155 B
Python
Raw Normal View History

print(b"1" == 1)
print(b"123" == bytearray(b"123"))
print(b'123' < bytearray(b"124"))
print(b'123' > bytearray(b"122"))
print(bytearray(b"23") in b"1234")