summaryrefslogtreecommitdiff
path: root/day2
diff options
context:
space:
mode:
authorAndrew <saintruler@gmail.com>2019-03-23 13:34:35 +0400
committerAndrew <saintruler@gmail.com>2019-03-23 13:34:35 +0400
commitb59e2733b7903df4f2d29da509ddfa51f6ec3280 (patch)
tree8c6247fec4467b6bf7cf02b9bbc5562ea4b53c60 /day2
parent3e7d2f19ccac6d0f86e829badf00e1bbcdf7a136 (diff)
Добавлен вывод результата в файл
Diffstat (limited to 'day2')
-rw-r--r--day2/task5/output.txt8
-rw-r--r--day2/task5/task5.py3
2 files changed, 10 insertions, 1 deletions
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)