From ce7286545be86cccc4d2d93988d8aa471b475d9b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Abdulkadir=20Furkan=20=C5=9Eanl=C4=B1?= Date: Fri, 11 Jan 2019 12:00:44 +0100 Subject: [PATCH] Prettify output. --- ib-clearance.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ib-clearance.py b/ib-clearance.py index f8d7489..5f3648e 100755 --- a/ib-clearance.py +++ b/ib-clearance.py @@ -35,7 +35,7 @@ def get_data(conn): :param conn: Connection object """ try: - id = int(input("Please enter student ID: ")) + id = int(input("\nPlease enter student ID: ")) cur = conn.cursor() cur.execute("SELECT id, student_class, other FROM students") @@ -51,7 +51,7 @@ def get_data(conn): else: raise ValueError except ValueError: - print("Invalid ID, try again.") + print("\nInvalid ID, try again.") return get_data(conn) @@ -139,9 +139,9 @@ def main(): current_time = parse_time_string(time.strftime("%H:%M")) if finish_time == None: - print("Student has no lessons today, clear to leave.") + print("\nStudent has no lessons today, clear to leave.") elif finish_time < current_time: - print("Student has finished for today, clear to leave.") + print("\nStudent has finished for today, clear to leave.") else: print("\nStudent still has lessons, clearance not granted.")