I need something that checks the length of a list. Maybe something like this, but this does not work:
if len(list) != 1 or 2:
# Do something
if len(list) == 1 or 2:
# Do something different
Ok i figured this out myself:
if len(list) == 1:
# Do something
elif len(list) == 2:
# Do the same something
if len(list) != 2:
# Do something different
elif len(list) != 1:
# Do something different