We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ac6cee commit d9753e0Copy full SHA for d9753e0
days/01-03-datetimes/my_code/helpers.py
@@ -0,0 +1,30 @@
1
+# ------------------------------------------------------------------------
2
+# Helper file for 100 Days of Code
3
+#
4
+# My first 'libaray' code
5
6
+# Brent Gawryluik
7
+# 2018-07-09
8
9
+
10
11
+def print_header(title):
12
13
+ border_length = len(title) + 12
14
15
+ print()
16
+ print_border(border_length)
17
+ print_title(title)
18
19
20
21
+def print_border(length):
22
+ for _ in range(length):
23
+ print('-', end='', flush=True)
24
25
26
27
28
+def print_title(title):
29
+ print(' ', end='', flush=True)
30
+ print(title)
0 commit comments