From ca19bb3090829b64b04a0814d223f03e4693f13f Mon Sep 17 00:00:00 2001 From: Andrew Date: Mon, 4 Mar 2019 20:59:43 +0400 Subject: Task 3 fixed --- day1/task3/task3.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'day1') diff --git a/day1/task3/task3.py b/day1/task3/task3.py index a456af9..6d328ac 100644 --- a/day1/task3/task3.py +++ b/day1/task3/task3.py @@ -9,10 +9,10 @@ else: with open(file_path, 'w', encoding='utf-8') as f: f.write('Ало здравствуйте. Alo zdravstvuite.') - with open(file_path, 'w', encoding='windows-1251') as f: + with open(file_path, encoding='cp1251') as f: print(f.read()) - with open(file_path, 'w', encoding='utf-8') as f: + with open(file_path, encoding='utf-8') as f: print(f.read()) os.remove(file_path) -- cgit v1.2.3