array1 = [1, 2, 3]
array2 = []
array3 = [1, 3]
if not all((array1, array2, array3)):
print("есть пустой!")
myArray1 = [1, 2, 3]
myArray2 = [2, 3]
myArray3 = [1, 3]
print([l for l in (myArray1, myArray2, myArray3) if l])
# или
print([','.join(map(str, l)) for l in (myArray1, myArray2, myArray3) if l] or 'pustoi')
dot=range(dots)
[0, 1, 2... dots-1]
dot = [] # вот пустой лист
for i in range(dots):
# добавляю в него листы вида [x, y]
dot.append([random.randrange(0, dots), random.randrange(0, dots)])
вот в этой строке pos = lines[i][1]
lines имеет значение ['あちら', '(n) (1) there', 'yonder', 'that']
<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><path
d="M50.28 0A99.33 99.24 0 0 0 0.01 13.79 99.33 99.24 0 0 0 0 13.91
99.33 99.24 0 0 0 50.08 100 99.33 99.24 0 0 0 100 14.05 99.33 99.24 0 0
0 99.98 13.42 99.33 99.24 0 0 0 50.28 0Z" fill="#005"/></svg>
for i in range(10):
a = i // 2
b = i % 2
print(i, a, b, a * 2 + b )