You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#These are the functions I was requried to create for the Maker's Assessment:
2
+
3
+
#Function to convert a number of minutes into an hours:minutesds style format.
4
+
5
+
deftime_conversion(num):
6
+
7
+
hours=num//60
8
+
minutees=num%60
9
+
returnf"{hours}:{minutees}"
10
+
11
+
#test cases
12
+
13
+
print(time_conversion(126))
14
+
print(time_conversion(45))
15
+
print(time_conversion(200))
16
+
17
+
#Function to find the longest word in a string. The function should also remove punctuaction and if multiple words have the same length, it shoukd return the first one.
0 commit comments