Jun-07-2020, 10:41 PM
Hello, Im having a problem with my function. It is supposed to out put '01' if the user only puts 1 digit but when I call it in the engine function it does not update.
def engine(): m = int(input("Type the Mintue: ")) m = str(m) check(m) print(m) def check(m): if len(m) != 2: for num in m: m = "0" + str(m) return