Re: [Tutor] Python Books...*
On Thu, Nov 18, 2010 at 3:23 PM, Evans Anyokwu wrote: > > > On Thu, Nov 18, 2010 at 9:34 AM, Kaushal Shriyan > wrote: >> >> On Thu, Nov 18, 2010 at 2:39 PM, Alan Gauld >> wrote: >> > >> > "Srinidhi Rao" wrote >> > >> >> I am a beginner here want to explore python, >> > >> > Hi, are you a beginner to programming or just to Python? >> > There are many good books for those converting from other languages, >> > there are not so many for those starting from scratch. >> > >> >> To Start with which is the best book to get a hang of what python is >> >> and >> >> also provide some distinction between the Python 2.6 and 3.x... >> > >> > Most books deal with one otr the other, I don't know of any that >> > compare the two. My online tutorlial is availavble for both and by >> > comparing versions you would get some idea. But the best way >> > is to read the Python v3 "Whats New" pages... >> > >> >> If this question is relevant can any one suggest which book to refer >> >> for >> >> the >> >> DataStructures(preferably in C) to have some backdrop. >> > >> > I'm not sure what you are looking for here. Python and C data >> > structures are very different. Python works at a much higher level, >> > abstract concept and C works at a low level, close to memory. >> > >> > Finally, do you explicitly want dead tree books or Kindle type e-books >> > or are you OK with web based resources? >> >> Hi Alan >> >> > Finally, do you explicitly want dead tree books or Kindle type e-books >> > or are you OK with web based resources? >> >> What exactly is dead tree book. sounds interesting >> >> Thanks >> >> Kaushal > > > Kaushal, dead tree book is the normal (printed) physical book you buy from a > bookshop. > > -- > Evans > Thanks Evans,Alan, I learnt a new thing today :-) ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Python Books...*
On Thu, Nov 18, 2010 at 2:39 PM, Alan Gauld wrote: > > "Srinidhi Rao" wrote > >> I am a beginner here want to explore python, > > Hi, are you a beginner to programming or just to Python? > There are many good books for those converting from other languages, > there are not so many for those starting from scratch. > >> To Start with which is the best book to get a hang of what python is and >> also provide some distinction between the Python 2.6 and 3.x... > > Most books deal with one otr the other, I don't know of any that > compare the two. My online tutorlial is availavble for both and by > comparing versions you would get some idea. But the best way > is to read the Python v3 "Whats New" pages... > >> If this question is relevant can any one suggest which book to refer for >> the >> DataStructures(preferably in C) to have some backdrop. > > I'm not sure what you are looking for here. Python and C data > structures are very different. Python works at a much higher level, > abstract concept and C works at a low level, close to memory. > > Finally, do you explicitly want dead tree books or Kindle type e-books > or are you OK with web based resources? Hi Alan > Finally, do you explicitly want dead tree books or Kindle type e-books > or are you OK with web based resources? What exactly is dead tree book. sounds interesting Thanks Kaushal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] perl or python
Hi Is it better to learn Perl or Python since i can manage only writing simple bash shell scripts. Please suggest/guide. Thanks and Regards Kaushal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] collectd application
Hi, For example I do wget -O file.png "http://collectd.example.com/collectd/cgi-bin/collection.cgi?action=show_plugin;host=testdb;timespan=day;plugin=mysql"; for a single host "testdb" and plugin "mysql" I do /usr/bin/mime-construct --header 'Sender: mor_...@test.com' --header 'From: mor_...@test.com' --to y...@mail.com --subject 'Email test' --file-attach /var/tmp/file.png That would be a manual way of doing it. I do have numerous servers and multiple plugins. Basically i would like to do it without manual intervention. Please suggest further to send multiple png files from multiple servers with multiple collectd plugins. is that possible using python ? Thanks, Kaushal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] New to Programming
On Sun, Jun 13, 2010 at 1:33 AM, Alan Gauld wrote: > > "Kaushal Shriyan" wrote > >> I am absolutely new to programming language. Dont have any programming >> experience. Can some one guide me please. is python a good start for >> novice. > > Yes, it is one of the best languages for an absolute beginner. > It may be all the language you ever need but even if you branch > out to others the principles you learn in Python will translate easily. > > There are a bunch of tutorials for absiolute beginners listed > on the Python web site (including mine) > > Try here (or follow my .sig): > > http://wiki.python.org/moin/BeginnersGuide/NonProgrammers > > > -- > Alan Gauld > Author of the Learn to Program web site > http://www.alan-g.me.uk/ > Thanks Alan for the motivation. Kaushal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] New to Programming
On Sat, Jun 12, 2010 at 4:04 PM, Dave Angel wrote: > Kaushal Shriyan wrote: >> >> Hi, >> >> I am absolutely new to programming language. Dont have any programming >> experience. Can some one guide me please. is python a good start for >> novice. >> >> Thanks, >> >> Kaushal >> >> > > Like nearly all questions, the answer is "it depends." > > Mainly, it depends on what your goal is. In my case, I made my living with > programming, for many years. And in the process, learned and used about 35 > languages, plus a few more for fun. I wish I had discovered Python much > earlier, though it couldn't have been my first, since it wasn't around. But > it'd have been much better than Fortran was, for learning. > > So tell us about your goals. Abstract knowledge, console utilities, gui > development, games, web development, networking communication, ... > > Next, you might want to evaluate what you already know. There are a lot of > non-programming things that a programmer needs to understand. If you > already know many of them, that's a big head start. If you already know how > to administer a Linux system, you're already a programmer and didn't know > it. If you write complex formulas for Excel, you're a programmer. If you > already know modus ponens, and understand what a contrapositive is, you've > got a head start towards logic (neither is a programming subject, just a > start towards logical thinking). If you've worked on a large document, and > kept backups of incremental versions, so you could rework the current > version based on earlier ones, that's a plus. If you know why a file's > timestamp might change when you copy it from hard disk to a USB drive and > back again, you've got a head start. If you know why it might have a > different timestamp when you look at it six months from now without changing > it, you've got a head start. > > If you're using Windows and never used a command prompt, you have a ways to > go. If you don't know what a file really is, or how directories are > organized, you have a ways to go. And if you think a computer is > intelligent, you have a long way to go. > > Python is a powerful tool. But if you're totally new to programming, it can > also be daunting. And most people have no idea how easy some programs are, > nor how hard some other programs are, to build. > > In any case, some of the things recommending Python as a first language are: > 1) an interactive interpreter - you can experiment, trivially > 2) very fast turnaround, from the time you make a change, till you can see > how it works. This can be true even for large programs > 3) this mailing list > > DaveA > > Thanks Dave. You saved my day and really motivated me Kaushal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
[Tutor] New to Programming
Hi, I am absolutely new to programming language. Dont have any programming experience. Can some one guide me please. is python a good start for novice. Thanks, Kaushal ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] rsync python script
On Fri, Mar 21, 2008 at 9:40 PM, Eric Walstad <[EMAIL PROTECTED]> wrote: > Kaushal Shriyan wrote: > > Hi > > > > [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> > > 0 18 * * * rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ > > > > If i put this two lines in crontab it will run correctly,My requirement > > was to create a python script, this python script should indicate > > success or failures and the reason for failure > It looks like rsync can output to a text file. Python makes text > parsing a breeze. Have you defined 'indicate', 'success' and 'failure' > yet? When will your python script run? Who/What will run it? > Hi Eric Can i have a sample python script which can take care of this rsync application and at the same time indicating success and failure and the reason for failure Thanks and Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] rsync python script
Hi [EMAIL PROTECTED] 0 18 * * * rsync -av /var/lib/mysql [EMAIL PROTECTED]:/var/lib/ If i put this two lines in crontab it will run correctly,My requirement was to create a python script, this python script should indicate success or failures and the reason for failure Any ideas Thanks and Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] self-learning Python
On Wed, Mar 12, 2008 at 9:00 PM, Kent Johnson <[EMAIL PROTECTED]> wrote: > Kaushal Shriyan wrote: > > I am a newbie with no programming experience. As Kent Johnson has > > already pointed here about the book "Python Programming for the > > absolute beginner" by Michael Dawson,I checked both in www.amazon.com > > and www.ebay.com website. Both this website say "Unavailable" or "Out > > of Stock" > > > > where can i get this book. I am eagerly awaiting to buy this book > > Today it is in stock at Amazon.com: > > http://www.amazon.com/Python-Programming-Absolute-Beginner-Second/dp/1598631128/ > > Also it is available direct from the publisher: > > http://premierpressbooks.com/ptr_detail.cfm?group=Programming&subcat=Other%20Programming&isbn=1%2D59863%2D112%2D8 > > Incidentally I am amazed to see how many new Python books are in the > works - more than 12 are scheduled for release in the next year! > > http://www.amazon.com/s/ref=sr_st?keywords=python+programming&rs=1000&page=1&rh=n%3A1000%2Ck%3Apython+programming&sort=daterank > > Kent > Thanks Kent :-) I placed a ordered for this book Thanks again Thanks and Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] self-learning Python
On Tue, Mar 11, 2008 at 1:11 AM, Ian Ozsvald <[EMAIL PROTECTED]> wrote: > Hi Enrique. I'll suggest my ShowMeDo for video tutorials - our 'beginner' > subsection for Python has 101 videos: > http://showmedo.com/videos/python?topic=beginner_programming > > Most of the videos are free (3 series - in yellow - require a subscription, > everything else is free). Topics covered include learning Python, watching > Python modules in action, an online tour of Python web-resources, cool > modules like RUR-PLE, Crunchy, pyGame, wxPython and lots of other stuff. > There are even more tutorials in the main Python section: > http://showmedo.com/videos/python > > Hope that helps, > Ian. > > > > Enrique Nieves, Jr. wrote: > > I'm not a programmer, but would like to learn to program. I'm > > considering self-learning python on my spare time. Can you recommend > > the best books, online training, or other resources? I know nothing > > about programming. > > > > > > > > enrique > > > > > > > > > > > ___ > > Tutor maillist - Tutor@python.org > > http://mail.python.org/mailman/listinfo/tutor > > -- > http://Services.ShowMeDo.com > http://ShowMeDo.com > [EMAIL PROTECTED] > > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > Hi all, I am a newbie with no programming experience. As Kent Johnson has already pointed here about the book "Python Programming for the absolute beginner" by Michael Dawson,I checked both in www.amazon.com and www.ebay.com website. Both this website say "Unavailable" or "Out of Stock" where can i get this book. I am eagerly awaiting to buy this book Thanks and Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] OOPs Concept
On 4/19/06, Matthew White <[EMAIL PROTECTED]> wrote: > Even though I am still new to python, I've recently had an insight as > to what makes OOP different from procedural programming. > > Let's take perl for example. A variable in perl is like a bowl. It's an > empty vessel you can put things in. You can change the contents of > the bowl, you can empty the bowl but it doesn't really *do* anything. > It has no real attributes aside from the fact that it's a container. > > So when I create a variable in perl it looks like this: > > $x = 'hello' > > If I want to make the first letter of the value of $x a capital letter, > I have to use a function to do it: > > $y = ucfirst($x) > > now $y contains the value 'Hello' > > In python one doesn't really create variables, one creates objects. > Sring objects, list objects, etc. And objects are cool because they can > do things. They are more than just merely bowls, they are like swiss > army knives. So in python, if I say: > > x = 'hello' > > Then I can do all sorts of things with x: > > x.capitalize() -> 'Hello' > x.swapcase() -> 'HELLO' > x.count('l') -> 2 > > This is just a very small example but I hope that my example can help > you understand what objects are what makes OOP different from procedural > programming. > > -mtw > > On Wed, Apr 19, 2006 at 06:07:27PM +0530, Kaushal Shriyan ([EMAIL PROTECTED]) > wrote: > > Hi All > > > > I wanted to understand about OOPs Concept in Python in a easy way, > > Please explain me with an example > > > > I have been reading http://www.freenetpages.co.uk/hp/alan.gauld/tutclass.htm > > but at the moment still the concept is not clear > > > > Thanks in Advance > > > > Regards > > > > Kaushal > > ___ > > Tutor maillist - Tutor@python.org > > http://mail.python.org/mailman/listinfo/tutor > > -- > Matthew White - District Systems Administrator > Tigard/Tualatin School District > 503.431.4128 > > "The greatest thing in this world is not so much where we are, but in > what direction we are moving." -Oliver Wendell Holmes > > Thanks Matthew Just wanted to know x.count('l') -> 2 Here 2 means what I didnot understood this and also does x is a object and capitalize(), swapcase() and count('l') are methods, is that correct what i understand Awaiting your earnest reply Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] OOPs Concept
Hi All I wanted to understand about OOPs Concept in Python in a easy way, Please explain me with an example I have been reading http://www.freenetpages.co.uk/hp/alan.gauld/tutclass.htm but at the moment still the concept is not clear Thanks in Advance Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Stack Diagrams
Hi All I am referring to Stack Diagrams from http://www.ibiblio.org/obp/thinkCSpy/chap03.htm#11 I did not understood this, please explain me with an example Thanks in Advance Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Explanation of Lists data Type
Hi All I am referring to http://www.ibiblio.org/obp/thinkCSpy/chap08.htm 8.7 List slices >>> list = ['a', 'b', 'c', 'd', 'e', 'f'] >>> list[1:3] ['b', 'c'] -> I understood this >>> list[:4] --> Does this mean its list[0:4] ['a', 'b', 'c', 'd'] > I didnot understood this >>> list[3:] --> Does this mean its list[3:0] ['d', 'e', 'f'] > I didnot understood this >>> list[:] --> Does this mean its list[0:0] ['a', 'b', 'c', 'd', 'e', 'f'] > I didnot understood this Please explain me Thanks in Advance Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Tuples
Hi All I am referring to http://www.ibiblio.org/obp/thinkCSpy/chap09.htm I did not understood the below Section at all :( 9.3 Tuples as return values Functions can return tuples as return values. For example, we could write a function that swaps two parameters: def swap(x, y): return y, x Then we can assign the return value to a tuple with two variables: a, b = swap(a, b) In this case, there is no great advantage in making swap a function. In fact, there is a danger in trying to encapsulate swap, which is the following tempting mistake: def swap(x, y): # incorrect version x, y = y, x If we call this function like this: swap(a, b) then a and x are aliases for the same value. Changing xinside swap makes x refer to a different value, but it has no effect on a in __main__. Similarly, changing y has no effect on b. This function runs without producing an error message, but it doesn't do what we intended. This is an example of a semantic error. As an exercise, draw a state diagram for this function so that you can see why it doesn't work. Thanks in Advance Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Database Connectivity
Hi ALL How do i connect my python program to MySQL DB or Oracle DB or can you please specify the URL which gives a detailed explanation on this. Thanks in Advance Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] comp.lang.python newsgroup
Hi All I went to a http://www.python.org/community/lists.html and found the below newsgroup How do i use this news group and access the information I need comp.lang.python newsgroup Thanks in Advance Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Tuple (Section 9.3)
Hi All I am reading this http://www.ibiblio.org/obp/thinkCSpy/chap09.htm and did not understood the Section 9.3 at all, Please explain me with an example so the idea become clear and understood 9.3 Tuples as return values Functions can return tuples as return values. For example, we could write a function that swaps two parameters: def swap(x, y): return y, x Then we can assign the return value to a tuple with two variables: a, b = swap(a, b) In this case, there is no great advantage in making swap a function. In fact, there is a danger in trying to encapsulate swap, which is the following tempting mistake: def swap(x, y): # incorrect version x, y = y, x If we call this function like this: swap(a, b) then a and x are aliases for the same value. Changing xinside swap makes x refer to a different value, but it has no effect on a in __main__. Similarly, changing y has no effect on b. This function runs without producing an error message, but it doesn't do what we intended. This is an example of a semantic error. As an exercise, draw a state diagram for this function so that you can see why it doesn't work. Thanks in Advance Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Emailid
Hi All I am a ardent fan of python can I have email address for me I mean For example for me it would be [EMAIL PROTECTED] Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Tuple
On 4/11/06, Noufal Ibrahim <[EMAIL PROTECTED]> wrote: > > On Tue, April 11, 2006 2:49 pm, Kaushal Shriyan wrote: > > Hi All > > > > I am referring to http://www.ibiblio.org/obp/thinkCSpy/chap09.htm > > > >>>> tuple = ('a', 'b', 'c', 'd', 'e') > >>>> tuple[0] > > 'a' > > > > > > And the slice operator selects a range of elements. > > > >>>> tuple[1:3] > > ('b', 'c') > > > > > > But if we try to modify one of the elements of the tuple, we get a error: > > > >>>> tuple[0] = 'A' > > TypeError: object doesn't support item assignment > > > > > > Of course, even if we can't modify the elements of a tuple, we can > > replace it with a different tuple: > > > >>>> tuple = ('A',) + tuple[1:] > >>>> tuple > > ('A', 'b', 'c', 'd', 'e') > > > > How does tuple = ('A',) + tuple[1:] this work > > One question mark is enough. ;) > > ('A',) creates a tuple with a single element. The comma at the end is to > differentiate between a tuple and just grouping brackets. > tuple[1:] returns all elements of the tuple except the first. > So what do you have? > A tuple ('A') and another tuple ('b', 'c', 'd', 'e'). > > Now, the + operator concatenates these two into a new tuple. What do you get? > ('A','b','c','d','e'). > > This is returned by the expression on the right hand side. And it's > assigned to the variable "tuple". When you print it, you get the value. > > I think you're getting confused between changing a tuple itself and > creating a new one with pieces of others. > > On a side note, it's not a good idea to call a variable "tuple" since > there is a python builtin by the same name. > -- > -NI > > Thanks Noufal for the explanation Appreciate it Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Tuple
Hi All I am referring to http://www.ibiblio.org/obp/thinkCSpy/chap09.htm >>> tuple = ('a', 'b', 'c', 'd', 'e') >>> tuple[0] 'a' And the slice operator selects a range of elements. >>> tuple[1:3] ('b', 'c') But if we try to modify one of the elements of the tuple, we get a error: >>> tuple[0] = 'A' TypeError: object doesn't support item assignment Of course, even if we can't modify the elements of a tuple, we can replace it with a different tuple: >>> tuple = ('A',) + tuple[1:] >>> tuple ('A', 'b', 'c', 'd', 'e') How does tuple = ('A',) + tuple[1:] this work Please explain me with an example Thanks Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Logical Operaor
Hi I am referring to http://www.ibiblio.org/obp/thinkCSpy/chap04.htm about Logical operators I didnot understood >>> x = 5 >>> x and 1 1 >>> y = 0 >>> y and 1 0 How 5 and 1 means 1 and 0 and 1 means 0 Thanks Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Logical Operators
Hi I am referring to http://www.ibiblio.org/obp/thinkCSpy/chap04.htm about Logical operators I didnot understood >>> x = 5 >>> x and 1 1 >>> y = 0 >>> y and 1 0 How 5 and 1 means 1 and 0 and 1 means 0 Thanks Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Hi
Hi ALL A simple query is that the python mailing List is python powered What does "python powered" means thanks Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] How does it function
Hi ALL Just wanted to know the detailed explanation about the below statement if __name__ == "__main__": Thanks Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Python Code
Hi I am unable to execute the below code, I have put this in test.py file and made it executable, when I run this I see no output, Please explain me as what is exactly going on with the below code The below code is from http://www.ibiblio.org/obp/thinkCSpy/chap11.htm def copyFile(oldFile, newFile): f1 = open(oldFile, "r") f2 = open(newFile, "w") while 1: text = f1.read(50) if text == "": break f2.write(text) f1.close() f2.close() return Thanks in Advance Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] ASCII
On 3/29/06, Pujo Aji <[EMAIL PROTECTED]> wrote: > > Hi Kaushal, > > Please clarify the problem more specific. > Or you can tell us that you have a problem and want to use python to solve > it? > > Sincerely Yours, > pujo > > > On 3/29/06, Kaushal Shriyan <[EMAIL PROTECTED]> wrote: > > > Hi All > > How do i use this ASCII values in my day to day activities, I am going > through > learning python, > > Please illustrate with examples > > Thanks in Advance > > Regards > > Kaushal > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > > Hi Pujo Its a very general question not related to python at all, I have a minimum knowledge in ASCII just wanted to know how it is used and how it helps out Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] ASCII
Hi All How do i use this ASCII values in my day to day activities, I am going through learning python, Please illustrate with examples Thanks in Advance Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Object Oriented Programmin
On 3/28/06, Kent Johnson <[EMAIL PROTECTED]> wrote: > Kaushal Shriyan wrote: > > Hi ALL > > > > I have gone through the object oriented programming in Python, I am > > not able to understand OOP concept in python, > > Both Alan Gauld's tutorial and A Byte of Python have beginner's > introductions to OOP: > http://www.freenetpages.co.uk/hp/alan.gauld/ > http://www.byteofpython.info/read/oops.html > > I have written an essay that talks about *why* you might want to use > OOP, rathre than how... > http://www.pycs.net/users/323/stories/15.html > > Kent > > ___ > Tutor maillist - Tutor@python.org > http://mail.python.org/mailman/listinfo/tutor > Thanks a Bunch to All Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Object Oriented Programmin
Hi ALL I have gone through the object oriented programming in Python, I am not able to understand OOP concept in python, is there a methodical way to understand it and simplfy things Thanks in Advance Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Learning Python
On 3/27/06, Noufal Ibrahim <[EMAIL PROTECTED]> wrote: > > On Mon, March 27, 2006 4:39 pm, Kaushal Shriyan wrote: > > Hi > > > > I am a novice in Python, Which is the best source of learning python > > for a beginner > > If you're already a "programmer", then the python tutorial at > http://docs.python.org/tut/tut.html + a working python installation is > enough IMHO. > > If you want to learn programming itself, perhaps you should take a look at > http://wiki.python.org/moin/BeginnersGuide/NonProgrammers > > Good luck! > -- > -NI > > Thanks a Ton, I will definetly ping and update all of you :) Regards KaushaL ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Learning Python
Hi I am a novice in Python, Which is the best source of learning python for a beginner Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Hi
On 3/22/06, Alan Gauld <[EMAIL PROTECTED]> wrote: > > I got this, Lets say if its mystring[n:m] where n may be another > > number and m may be another number so how will it work in that case, > > so this becomes general and makes more clear > > > n is the index of the first character and m is the index *beyond* > the last character > > > Lets say if its mystring[3:8] so how will i evaluate it > > It will return the characters at indexes 3,4,5,6, and 7. > > In other words it operates in the same way as the range > function. > > you could get the same set of characters back using > > for index in range(n,m): >print mystring[index] > > Does that help? > > Alan G > Author of the learn to program web tutor > http://www.freenetpages.co.uk/hp/alan.gauld > > > > Thanks a Lot for all the help, Its excellent and too good Appreciate all of you for making me clear and better in understanding. Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
Re: [Tutor] Hi
On 3/22/06, Danny Yoo <[EMAIL PROTECTED]> wrote: > > > I am new to python and I am going through the URL > > http://www.ibiblio.org/obp/thinkCSpy/index.htm, At the moment I am going > > through the Chapter 7 Strings, I am stuck with understanding slice which > > is a part of a String, I am not able to understand how it functions > > Hello, > > > A "slice" takes a string and returns a "substring" of that string. For > example, if we have a string like: > > ## > >>> mystring = "supercalifragilisticexpialidocious" > ## > > then we can select different portions of the string by indicating the > start and end positions. For example, the first ten characters of > mystring can be extracted using a slice: > > ## > >>> mystring[0:10] > 'supercalif' > ## > > > Is this what you are confused about? > > Please give us more details on where you're getting stuck, and we will do > what we can to help clarify. > > > Please continue to reply to '[EMAIL PROTECTED]': do not email me > directly. Although I may not personally have the time to answer, I'm sure > at least one of the other helpers on the list do, so by continuing the > conversation on python-help, we'll be able to guarantee that your > questions are not lost. > > Thanks Danny Yoo I got this, Lets say if its mystring[n:m] where n may be another number and m may be another number so how will it work in that case, so this becomes general and makes more clear Lets say if its mystring[3:8] so how will i evaluate it Thanks for all the help Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor
[Tutor] Hi
Hi I am new to python and I am going through the URL http://www.ibiblio.org/obp/thinkCSpy/index.htm, At the moment I am going through the Chapter 7 Strings, I am stuck with understanding slice which is a part of a String, I am not able to understand how it functions Awaiting your earnest reply Thanks in Advance Regards Kaushal ___ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor