Thanks gruntfutuk,
CMD returns me an invalid syntax with the following code, neitherless no more changes in my editor
CMD returns me an invalid syntax with the following code, neitherless no more changes in my editor
def add_zero(nbr: str, m: int = 6) -> str: return "0" * (m - len(nbr)) + nbr with open("dico.txt","w") as f: a = 0 while a <= 999999: if a <= 99999: num_str = add_zero(str(a)) else: num_str = str(a) f.write(num_str'\n') a += 1