# Решение nm=(12,23,34,14,-7,-34) a = sum(nm[:3]) b = sum(nm[3:]) print(a - b) import os from os.path import isdir f = open('a.txt', 'w+') f.write('text') f.close() with ope