From b7f52e7d15f2464c015d8fdfd4dda23997ab8379 Mon Sep 17 00:00:00 2001 From: kimgajin <117082452+kimgajin@users.noreply.github.com> Date: Tue, 12 Mar 2024 21:39:57 +0900 Subject: [PATCH] Update main.py --- main.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/main.py b/main.py index 5a3e755..d6ec0bd 100644 --- a/main.py +++ b/main.py @@ -1,14 +1,14 @@ from priority_queue import PriorityQueue def main(): - pq = PriorityQueue() - - pq.push("Task 1", 3) - pq.push("Task 2", 1) - pq.push("Task 3", 2) - - print(pq.pop()) - print(pq.pop()) - print(pq.pop()) + pq = PriorityQueue() + + pq.push("Task 1", 3) + pq.push("Task 2", 1) + pq.push("Task 3", 2) + + print(pq.pop()) + print(pq.pop()) + print(pq.pop()) if __name__ == "__main__": - main() \ No newline at end of file + main()