This function get a string as input if input is one digit add a zero :param input_string: input digit az string :type input_string:str :return: modified output as str
(input_string)
| 5 | name_dict={} |
| 6 | unknown_index=0 |
| 7 | def zero_insert(input_string): |
| 8 | |
| 9 | ''' |
| 10 | This function get a string as input if input is one digit add a zero |
| 11 | :param input_string: input digit az string |
| 12 | :type input_string:str |
| 13 | :return: modified output as str |
| 14 | ''' |
| 15 | if len(input_string)==1: |
| 16 | return "0"+input_string |
| 17 | return input_string |
| 18 | |
| 19 | def time_convert(input_data): |
| 20 | ''' |