[algogeeks] EOF in Python for SPOJ

2011-05-25 Thread Vishnutej
Hello everyone,

I'm new to python.How can I check the EOF for inputs in SPOJ?

Thanks in advance!!

-Vishnutej

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] EOF in Python for SPOJ

2011-05-25 Thread abhijith reddy
while(1):
   try:
 # code
 #
 #
   except EOFError: break


On Wed, May 25, 2011 at 8:41 PM, Vishnutej
mylavarapu.vishnu...@gmail.comwrote:

 Hello everyone,

 I'm new to python.How can I check the EOF for inputs in SPOJ?

 Thanks in advance!!

 -Vishnutej

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.



-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] EOF in Python for SPOJ

2011-05-25 Thread Vishnutej Mylavarapu
Thnx a lot abhijith..

Do you have any links for tutorials for beginners?

On Wed, May 25, 2011 at 8:42 PM, abhijith reddy abhijith200...@gmail.comwrote:

 while(1):
try:
  # code
  #
  #
except EOFError: break



 On Wed, May 25, 2011 at 8:41 PM, Vishnutej mylavarapu.vishnu...@gmail.com
  wrote:

 Hello everyone,

 I'm new to python.How can I check the EOF for inputs in SPOJ?

 Thanks in advance!!

 -Vishnutej

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 

*-Vishnutej Mylavarapu.*

WebRep
Overall rating

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] EOF in Python for SPOJ

2011-05-25 Thread abhijith reddy
A Byte of Python - Freely available online.
http://docs.python.org/library/; - Python Library Reference.


On Wed, May 25, 2011 at 8:52 PM, Vishnutej Mylavarapu 
mylavarapu.vishnu...@gmail.com wrote:

 Thnx a lot abhijith..

 Do you have any links for tutorials for beginners?

 On Wed, May 25, 2011 at 8:42 PM, abhijith reddy 
 abhijith200...@gmail.comwrote:

 while(1):
try:
  # code
  #
  #
except EOFError: break



 On Wed, May 25, 2011 at 8:41 PM, Vishnutej 
 mylavarapu.vishnu...@gmail.com wrote:

 Hello everyone,

 I'm new to python.How can I check the EOF for inputs in SPOJ?

 Thanks in advance!!

 -Vishnutej

 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




 --

 *-Vishnutej Mylavarapu.*

 WebRep
 Overall rating


 --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] EOF in Python for SPOJ

2011-05-25 Thread Aman (neshu) Agarwal
for line in sys.stdin:
print line,
print eof


-- 
Aman Agarwal

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] EOF in Python for SPOJ

2011-05-25 Thread Aman (neshu) Agarwal
do not forget to import sys


import sys
for line in sys.stdin:
print line,
print eof


On Wed, May 25, 2011 at 9:12 PM, Aman (neshu) Agarwal 
neshuagarwal1...@gmail.com wrote:

 for line in sys.stdin:
 print line,
 print eof


 --
 Aman Agarwal





-- 
Aman Agarwal

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.



Re: [algogeeks] EOF in Python for SPOJ

2011-05-25 Thread Vishnutej Mylavarapu
What are the cases for which I might get NZEC??

On Wed, May 25, 2011 at 9:13 PM, Aman (neshu) Agarwal 
neshuagarwal1...@gmail.com wrote:


 do not forget to import sys


 import sys

 for line in sys.stdin:
 print line,
 print eof


 On Wed, May 25, 2011 at 9:12 PM, Aman (neshu) Agarwal 
 neshuagarwal1...@gmail.com wrote:

 for line in sys.stdin:
 print line,
 print eof


 --
 Aman Agarwal





 --
 Aman Agarwal


  --
 You received this message because you are subscribed to the Google Groups
 Algorithm Geeks group.
 To post to this group, send email to algogeeks@googlegroups.com.
 To unsubscribe from this group, send email to
 algogeeks+unsubscr...@googlegroups.com.
 For more options, visit this group at
 http://groups.google.com/group/algogeeks?hl=en.




-- 

*-Vishnutej Mylavarapu.*

WebRep
Overall rating

-- 
You received this message because you are subscribed to the Google Groups 
Algorithm Geeks group.
To post to this group, send email to algogeeks@googlegroups.com.
To unsubscribe from this group, send email to 
algogeeks+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/algogeeks?hl=en.