From b59e2733b7903df4f2d29da509ddfa51f6ec3280 Mon Sep 17 00:00:00 2001 From: Andrew Date: Sat, 23 Mar 2019 13:34:35 +0400 Subject: =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20?= =?UTF-8?q?=D0=B2=D1=8B=D0=B2=D0=BE=D0=B4=20=D1=80=D0=B5=D0=B7=D1=83=D0=BB?= =?UTF-8?q?=D1=8C=D1=82=D0=B0=D1=82=D0=B0=20=D0=B2=20=D1=84=D0=B0=D0=B9?= =?UTF-8?q?=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- day2/task5/output.txt | 8 ++++++++ day2/task5/task5.py | 3 ++- 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 day2/task5/output.txt (limited to 'day2') diff --git a/day2/task5/output.txt b/day2/task5/output.txt new file mode 100644 index 0000000..22c85a2 --- /dev/null +++ b/day2/task5/output.txt @@ -0,0 +1,8 @@ + + +,--. ,--. ,--. ,--. + \ `.' /,---. ,--.,--.| |,--.--. ,---. ,-| | ,---. ,--,--, ,---. + '. /| .-. || || |`-' | .--'| .-. : ' .-. || .-. || \| .-. : + | | ' '-' '' '' ' | | \ --. \ `-' |' '-' '| || |\ --. + `--' `---' `----' `--' `----' `---' `---' `--''--' `----' + diff --git a/day2/task5/task5.py b/day2/task5/task5.py index 1c12575..98cdcb0 100644 --- a/day2/task5/task5.py +++ b/day2/task5/task5.py @@ -10,4 +10,5 @@ msg = [] for pos in sorted(msg_positions.keys()): msg.append(msg_positions[pos]) -print(''.join(msg)) +with open('output.txt', 'w') as f: + print(''.join(msg), file=f) -- cgit v1.2.3