[Tutor] can i run the last saved input again

vishwajeet singh dextrous85 at gmail.com
Sat Jul 24 07:51:06 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???
>

 you need to serialize the input as everything goes out of memory once
program exits.



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


-- 
Vishwajeet Singh
+91-9657702154 | dextrous85 at gmail.com | http://bootstraptoday.com
Twitter: http://twitter.com/vishwajeets | LinkedIn:
http://www.linkedin.com/in/singhvishwajeet
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/tutor/attachments/20100724/5cef72df/attachment.html>


More information about the Tutor mailing list