generate functionTue, 07 Mar 2023

fill the number with zeros on the left if there are no 12 orders

def padding_with_zeros(number): return number.zfill(12) # 12 is a length of the string padding_with_zeros('1')

Questions about programming?Chat with your personal AI assistant