summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)