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))
/cart/<id>/add?count=<count>
/cart/<id>/remove
tuu = {'chat': []}
....
tuu[chat].append(a)
for i in range(5):
https://docs.python.org/3/library/functions.html#f... намного хуже?