From ed3bca9db6632308c931bec7a33ecb74f654b867 Mon Sep 17 00:00:00 2001
From: vand <vand@dtu.dk>
Date: Thu, 10 Jun 2021 19:31:59 +0000
Subject: [PATCH] Upload New File

---
 module2_functions.py | 25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 module2_functions.py

diff --git a/module2_functions.py b/module2_functions.py
new file mode 100644
index 0000000..5b14e0c
--- /dev/null
+++ b/module2_functions.py
@@ -0,0 +1,25 @@
+
+
+def convert_time(hours, minutes):
+    minutes_in_hour = 60
+    mnt = hours * minutes_in_hour
+    total = minutes + mnt
+    return total
+
+#%%
+
+hours = 5
+minutes = 15
+converted = convert_time(hours,minutes)
+print(converted)
+
+#%% Instead of writing function from scratch, you should first implement the 
+# functionality, as in the code below. Then, you can pack it in the function. 
+
+hours = 5
+minutes = 15
+minutes_in_hour = 60
+mnt = hours * minutes_in_hour
+total = minutes + mnt
+
+
-- 
GitLab