>>> from time_module import extract_time >>> extract_time('Your class is 10:05:00') (10, 5, 0) >>> extract_time('my clock says now is 07:30:30') (7, 30, 30) >>> extract_time('Your class is 02:00:00') (2, 0, 0) >>> from time_module import time_left >>> s = 'Your class is at 10:05:00 and it is now is 07:30:30.' >>> time_left(s) 'The class starts in 2 hours, 34 minutes and 30 seconds.' >>> s = 'Your class is at 10:05:00 and my watch says it is now 09:55:00.' >>> time_left(s) 'The class starts in 0 hours, 10 minutes and 0 seconds.' >>> s = 'Your class is at 10:05:00 and and according to my watch it is now 09:55:30.' >>> time_left(s) 'Hurry up! The class starts in 9 minutes and 30 seconds.' >>> s = 'Your class is at 10:05:00 and my watch says now is 10:00:00.' >>> time_left(s) 'Hurry up! The class starts in 5 minutes and 0 seconds.' >>> s = 'Your class is at 10:05:00 and according to my watch it is now 10:00:55.' >>> time_left(s) 'Hurry up! The class starts in 4 minutes and 5 seconds.' >>> from cons_module import cons_count >>> sref = 'abcdefghijklmnopqrsPQRST' >>> cons_count('The very txatxi_piruli.', sref) 6 >>> cons_count('The very txatxi.', sref) 3 >>> cons_count('The_txatxi.', sref) 2 >>> cons_count('Txatxi.', sref) 1 >>> from nums_module import nums_combine nums_combine('21458', '51279') '31368' nums_combine('12345', '00000') '01122 nums_combine('00000', '00000') '00000'