Re: [BangPypers] BangPypers Digest, Vol 8, Issue 15

2008-04-30 Thread srinivasarao puvvala
hi, i have recently started learning python programming.i got confused with "identation" problems.when ever i write if else if statements and try excute those i got errors like"unexcpected indent" "syntax error".i have tried diffrent example provided by the python tutorial.but i cann't slove that p

Re: [BangPypers] BangPypers Digest, Vol 8, Issue 15

2008-04-30 Thread Rohan Sharma
I'm not sure what the problem is. Could you show the snippets you are referring to? An else-if ladder looks like this: x = int(raw_input()) if x < 0: print "Negative" elif x == 0: print "Zero" else: print "Positive" Be careful: do not mix tabs and spaces in a code block;

Re: [BangPypers] How can I read an excel sheet using python ?

2008-04-30 Thread gnuyoga
if u have java then u can use apache-poi using jython http://poi.apache.org/ - sree sambasivareddy wrote: Hi all, Need help on “How can I read an excel sheet using python”? If any one have any example please send to me. Thanks in advance. **Thanks and Regards,** **Sambasivareddy.S**

Re: [BangPypers] BangPypers Digest, Vol 8, Issue 15

2008-04-30 Thread Banibrata Dutta
As Rohan mentions... "Be careful: do not mix tabs and spaces in a code block;" It is one of the first pitfalls a Python newbie comes-accross, if you do not use a good Python source editor / IDE. There are some file editors that do automatic indentation by "tab" insertion while writing code, but w

Re: [BangPypers] BangPypers Digest, Vol 8, Issue 15

2008-04-30 Thread Anand Balachandran Pillai
This is a common pitfall encountered by the brand-newbie. Use a good editor which does a good job of "untabifying" your code. I use emacs+python-mode. I use tabs for writing my code since it is easy to indent code using tabs in emacs. I have defined a macro which converts tabs to spaces when savin