clean_list = []
with open('input.txt', 'r', encoding="utf-8") as f_input:
for l in f_input:
if not l.startswith('http'):
clean_list.append(l)
with open('input.txt', 'w', encoding="utf-8") as f_out:
f_out.write('\n'.join(clean_list))
tuu = {'chat': []}
....
tuu[chat].append(a)
for i in range(5):
https://docs.python.org/3/library/functions.html#f... 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')
0b1 # Читать
0b10 # Писать
0b100 # Редактировать
0b1000 # Удалять
0b1010 # юзер может писать и удалять, но не может читать и редактировать