[Tutor] can i run the last saved input again

Shashwat Anand anand.shashwat at gmail.com
Sat Jul 24 08:23:26 CEST 2010


On Sat, Jul 24, 2010 at 11:16 AM, ANKUR AGGARWAL <coolankur2006 at gmail.com>wrote:

> 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???
>

Think about the consequences when python will start remembering the input.

>
> _______________________________________________
> Tutor maillist  -  Tutor at python.org
> To unsubscribe or change subscription options:
> http://mail.python.org/mailman/listinfo/tutor
>
>


-- 
~l0nwlf
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100724/90e3ab8a/attachment.html>


More information about the Tutor mailing list