Source code for kyu_7.substituting_variables_into_strings_padded_numbers.solution

#  Created by Egor Kostan.
#  GitHub: https://github.com/ikostan
#  LinkedIn: https://www.linkedin.com/in/egor-kostan/


[docs]def solution(value: int) -> str: """ Complete the solution so that it returns a formatted string. The return value should equal "Value is VALUE" where value is a 5 digit padded number. :param value: :return: """ result = str(value) while len(result) != 5: result = '0' + result return 'Value is {}'.format(result)