[Tutor] can i run the last saved input again
ANKUR AGGARWAL
coolankur2006 at gmail.com
Sat Jul 24 07:46:15 CEST 2010
hey this is a crazy question but i want to know it......
suppose i have this code
a=raw_input("enter the string :")
print a
then i type python prog.py
output:
enter the string:hello
hello
now i want to ask is there's any way that python remembers the input i gave
it to last time and it just give me the output when i again run python
prog.py?????? i mean i dont need to give input again. I just need to give
input only first time and when i run the prog again it will pick up the
previous one output
is it possible???
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100724/dda032b1/attachment.html>
More information about the Tutor
mailing list