-2
Does anyone know how to change the value of a variable in the terminal and stay saved forever in the script?
ex: I create a variable of type input ps: The variable name is Name;
E depois crio uma variável com o nome recebe;
A variável recebe a variável Nome;
E quando fecho o terminal do python, a variavel recebe estará o oque eu escrevi no terminal.
The question is not very clear, could you [Dit] explain it better, please? If you are talking about the Python REPL, I think that what you want is not possible.
– bfavaretto
It is not even possible, if you want to persist the value of a variable when the program is no longer running, you need to save this value somewhere (file, database), and read from this place to get the value saved if it exists.
– bfavaretto