micropython/tests/basics/set_containment.py

5 wiersze
152 B
Python

for i in 1, 2:
for o in {}, {1}, {2}:
print("{} in {}: {}".format(i, o, i in o))
print("{} not in {}: {}".format(i, o, i not in o))