with open("tarefas.txt", "w", encoding="utf-8") as arquivo:
    contagem = 1
    while contagem < 6:
        tarefa=input(f"Digite a sua {contagem}º Tarefa: \n")
        arquivo.write(f"{contagem}. {tarefa}\n")
        contagem += 1
print("Tarefas salvas com sucesso")

Embed on website

To embed this project on your website, copy the following code and paste it into your website's HTML: