Hello,
I would like making a list of number in a file I can read with notepad.
I try this:
Could you tell me why?
I would like making a list of number in a file I can read with notepad.
I try this:
f=open("dico.txt","w") a=0 while a<=999999: if a<=99999: def add_zero(nbr: str, m: int = 6) -> str: return "0" * (m - len(nbr)) + nbr f.write(str(a)) a=a+1 else: f.write(str(a)) a=a+1 f.close()A syntax error in the "else" line appears.
Could you tell me why?