From satyaakam at gmail.com Wed Jun 5 06:25:11 2013 From: satyaakam at gmail.com (satyaakam goswami) Date: Wed, 5 Jun 2013 09:55:11 +0530 Subject: [Ncr-Python.in] Fwd: [BangPypers] [X-post] Registrations are open In-Reply-To: <1370403360.6333.YahooMailNeo@web192203.mail.sg3.yahoo.com> References: <1370403360.6333.YahooMailNeo@web192203.mail.sg3.yahoo.com> Message-ID: ---------- Forwarded message ---------- From: vijay Date: Wed, Jun 5, 2013 at 9:06 AM Subject: [BangPypers] [X-post] Registrations are open To: Mailing list for the PyCon India conference , Bangalore Python Users Group - India Hi, Registrations are open for PyCon India 2013. http://pyconindia2013.doattend.com/ Please spread the word and book your early-bird tickets. With Thanks VIjay _______________________________________________ BangPypers mailing list BangPypers at python.org http://mail.python.org/mailman/listinfo/bangpypers -------------- next part -------------- An HTML attachment was scrubbed... URL: From kumar3180 at gmail.com Thu Jun 13 13:19:26 2013 From: kumar3180 at gmail.com (Raakesh kumar) Date: Thu, 13 Jun 2013 16:49:26 +0530 Subject: [Ncr-Python.in] [ilugd] Django mptt help Message-ID: Hi, I am using Django mptt library for tree traversal of mysql data and i am trying to modify the data before i display it in template. Actually in my mysql rows i am inserting few comma separated user ids but i want them to change this part of tree and replace them with the user name. I tried to fetch the tree and loop through it and get corresponding user ids from database and again assigned them to the variable. When i tried to print them on console it was working fine but in template it's showing the database values. If someone could help me to solve it? Thanks in advance -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gora at mimirtech.com Thu Jun 13 19:42:26 2013 From: gora at mimirtech.com (Gora Mohanty) Date: Thu, 13 Jun 2013 23:12:26 +0530 Subject: [Ncr-Python.in] [ilugd] Django mptt help In-Reply-To: References: Message-ID: On 13 June 2013 16:49, Raakesh kumar wrote: > > Hi, > I am using Django mptt library for tree traversal of mysql data and i am > trying to modify the data before i display it in template. Actually in my > mysql rows i am inserting few comma separated user ids but i want them to > change this part of tree and replace them with the user name. > I tried to fetch the tree and loop through it and get corresponding user > ids from database and again assigned them to the variable. When i tried to > print them on console it was working fine but in template it's showing the > database values. If someone could help me to solve it? This description makes little sense, at least not to me. Please ask a more specific question, and show us some code. Regards, Gora From k.03chandra at gmail.com Thu Jun 13 20:28:25 2013 From: k.03chandra at gmail.com (chandrakant kumar) Date: Thu, 13 Jun 2013 23:58:25 +0530 Subject: [Ncr-Python.in] [ilugd] Django mptt help In-Reply-To: References: Message-ID: Need a code sample. On Thu, Jun 13, 2013 at 11:12 PM, Gora Mohanty wrote: > On 13 June 2013 16:49, Raakesh kumar wrote: > > > > Hi, > > I am using Django mptt library for tree traversal of mysql data and i am > > trying to modify the data before i display it in template. Actually in my > > mysql rows i am inserting few comma separated user ids but i want them to > > change this part of tree and replace them with the user name. > > I tried to fetch the tree and loop through it and get corresponding user > > ids from database and again assigned them to the variable. When i tried > to > > print them on console it was working fine but in template it's showing > the > > database values. If someone could help me to solve it? > > This description makes little sense, at least not to me. > Please ask a more specific question, and show us > some code. > > Regards, > Gora > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : > http://python.org.in/wiki/NcrPython/MailingListGuidelines > -- regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From kumar3180 at gmail.com Fri Jun 14 09:05:23 2013 From: kumar3180 at gmail.com (Raakesh kumar) Date: Fri, 14 Jun 2013 12:35:23 +0530 Subject: [Ncr-Python.in] [ilugd] Django mptt help In-Reply-To: References: Message-ID: On Thu, Jun 13, 2013 at 11:12 PM, Gora Mohanty wrote: > On 13 June 2013 16:49, Raakesh kumar wrote: > > > > Hi, > > I am using Django mptt library for tree traversal of mysql data and i am > > trying to modify the data before i display it in template. Actually in my > > mysql rows i am inserting few comma separated user ids but i want them to > > change this part of tree and replace them with the user name. > > I tried to fetch the tree and loop through it and get corresponding user > > ids from database and again assigned them to the variable. When i tried > to > > print them on console it was working fine but in template it's showing > the > > database values. If someone could help me to solve it? > > This description makes little sense, at least not to me. > Please ask a more specific question, and show us > some code. > > Regards, > Gora > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : > http://python.org.in/wiki/NcrPython/MailingListGuidelines > Ok, Let me put it in this way: 1 - My table "works" has a column "invities", and this column stores user_id1,user_id2 type of data. Which means these users are the member for this particular row data. 2 - And following code is used to view the tree:: def view(request, id): try: ideas = Works.objects.filter(tree_id=id).filter(is_deleted=False) # Following Code is to fetch user details and replace their ids with name for i in range(len(ideas)): invities = '' members = ideas[i].invities members = members.split(',') for member in members: try: member_detail = User.objects.get(email = member) member_name = member_detail.full_name except User.DoesNotExist: member_name = member invities = invities + member_name + ',' ideas[i].invities = invities except Idea.DoesNotExist: raise Http404 return render_to_response( 'idea/view.html', {'nodes': ideas}, context_instance=RequestContext(request) ) 3 - The problem in this code is, when i display idea.invities here, it works fine but in templates it doesn't show the names but email ids. 4 - Following is the code in template: {% load mptt_tags %} {% recursetree nodes %} Member(s): {{node.invities}} {% if not node.is_leaf_node %}
{{ children }}
{% endif %} {% endrecursetree %} Now here i want those name to be displayed. -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From gora at mimirtech.com Fri Jun 14 11:39:43 2013 From: gora at mimirtech.com (Gora Mohanty) Date: Fri, 14 Jun 2013 15:09:43 +0530 Subject: [Ncr-Python.in] [ilugd] Django mptt help In-Reply-To: References: Message-ID: On 14 June 2013 12:35, Raakesh kumar wrote: [...] > Ok, > Let me put it in this way: > 1 - My table "works" has a column "invities", and this column stores > user_id1,user_id2 type of data. Which means these users are the member for > this particular row data. > 2 - And following code is used to view the tree:: > def view(request, id): > try: > ideas = Works.objects.filter(tree_id=id).filter(is_deleted=False) > # Following Code is to fetch user details and replace their ids with > name > for i in range(len(ideas)): > invities = '' > members = ideas[i].invities > members = members.split(',') > for member in members: > try: > member_detail = User.objects.get(email = member) > member_name = member_detail.full_name > except User.DoesNotExist: > member_name = member I do not see how this can possibly be working for you, Presumably User is the django.contrib.auth User model, in which case it has no attribute full_name (you probably meant get_full_name()). Thus, an AttributeError should be raised, and your program should crash. I suspect that you have not shown us the real code, and you are instead catching all exceptions, which would explain the behaviour that you are seeing, as your exception handling code then simply replaces the original value. Regards, Gora From kumar3180 at gmail.com Fri Jun 14 12:41:47 2013 From: kumar3180 at gmail.com (Raakesh kumar) Date: Fri, 14 Jun 2013 16:11:47 +0530 Subject: [Ncr-Python.in] [ilugd] Django mptt help In-Reply-To: References: Message-ID: On Fri, Jun 14, 2013 at 3:09 PM, Gora Mohanty wrote: > > I do not see how this can possibly be working for you, > Presumably User is the django.contrib.auth User model, > in which case it has no attribute full_name (you probably > meant get_full_name()). Thus, an AttributeError should > be raised, and your program should crash. > > I suspect that you have not shown us the real code, and > you are instead catching all exceptions, which would > explain the behaviour that you are seeing, as your exception > handling code then simply replaces the original value. > > Regards, > Gora > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : > http://python.org.in/wiki/NcrPython/MailingListGuidelines > No no, it's not like that. I am not using django auth system at all. I had developed my own auth system because i was not able to find out any easy way to deal with django auth for my requirements. If you wish, i can show you auth system code also but here i don't think it's required so i have posted view part only. So i would suggest don't go that side because it's a different section. -- Regards RAKESH KUMAR http://raakeshkumar.wordpress.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From amit.pureenergy at gmail.com Wed Jun 26 18:04:00 2013 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Wed, 26 Jun 2013 21:34:00 +0530 Subject: [Ncr-Python.in] An easy sqlalchemy question Message-ID: Hi All , Please help answer what should actually have been a simple problem with sqlalchemy. http://stackoverflow.com/questions/17325006/how-to-create-a-foreignkey-reference-with-sqlalchemy Thanks Amit -- A-M-I-T S|S -------------- next part -------------- An HTML attachment was scrubbed... URL: From gora at mimirtech.com Wed Jun 26 18:13:18 2013 From: gora at mimirtech.com (Gora Mohanty) Date: Wed, 26 Jun 2013 21:43:18 +0530 Subject: [Ncr-Python.in] An easy sqlalchemy question In-Reply-To: References: Message-ID: On 26 June 2013 21:34, Amit Sethi wrote: > Hi All , Please help answer what should actually have been a simple problem > with sqlalchemy. > > http://stackoverflow.com/questions/17325006/how-to-create-a-foreignkey-reference-with-sqlalchemy Been a while since I have had reason to play with SQLAlchemy, but surely this is explained in http://docs.sqlalchemy.org/en/rel_0_8/orm/relationships.html Regards, Gora From k.03chandra at gmail.com Wed Jun 26 19:05:43 2013 From: k.03chandra at gmail.com (chandrakant kumar) Date: Wed, 26 Jun 2013 22:35:43 +0530 Subject: [Ncr-Python.in] An easy sqlalchemy question In-Reply-To: References: Message-ID: If using expression api, it is, Column(Column_name, None, Foreignkey('reference_table.primary_key_column', onupdate='CASCADE', ondelete='CASCADE')) On Wed, Jun 26, 2013 at 9:43 PM, Gora Mohanty wrote: > On 26 June 2013 21:34, Amit Sethi wrote: > > Hi All , Please help answer what should actually have been a simple > problem > > with sqlalchemy. > > > > > http://stackoverflow.com/questions/17325006/how-to-create-a-foreignkey-reference-with-sqlalchemy > > Been a while since I have had reason to play > with SQLAlchemy, but surely this is explained > in http://docs.sqlalchemy.org/en/rel_0_8/orm/relationships.html > > Regards, > Gora > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : > http://python.org.in/wiki/NcrPython/MailingListGuidelines > -- regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From amit.pureenergy at gmail.com Wed Jun 26 19:28:08 2013 From: amit.pureenergy at gmail.com (Amit Sethi) Date: Wed, 26 Jun 2013 22:58:08 +0530 Subject: [Ncr-Python.in] An easy sqlalchemy question In-Reply-To: References: Message-ID: Chandrakant , Well that as I have described in the question did not work . However explicitly declaring a Relation did . So currently I am going for that but I just think that should have happened implicitly On Wed, Jun 26, 2013 at 10:35 PM, chandrakant kumar wrote: > If using expression api, it is, > > Column(Column_name, None, Foreignkey('reference_table.primary_key_column', > onupdate='CASCADE', ondelete='CASCADE')) > > > On Wed, Jun 26, 2013 at 9:43 PM, Gora Mohanty wrote: > >> On 26 June 2013 21:34, Amit Sethi wrote: >> > Hi All , Please help answer what should actually have been a simple >> problem >> > with sqlalchemy. >> > >> > >> http://stackoverflow.com/questions/17325006/how-to-create-a-foreignkey-reference-with-sqlalchemy >> >> Been a while since I have had reason to play >> with SQLAlchemy, but surely this is explained >> in http://docs.sqlalchemy.org/en/rel_0_8/orm/relationships.html >> >> Regards, >> Gora >> _______________________________________________ >> http://mail.python.org/mailman/listinfo/ncr-python.in >> Mailing list guidelines : >> http://python.org.in/wiki/NcrPython/MailingListGuidelines >> > > > > -- > regards > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : > http://python.org.in/wiki/NcrPython/MailingListGuidelines > -- A-M-I-T S|S -------------- next part -------------- An HTML attachment was scrubbed... URL: From k.03chandra at gmail.com Wed Jun 26 20:14:10 2013 From: k.03chandra at gmail.com (chandrakant kumar) Date: Wed, 26 Jun 2013 23:44:10 +0530 Subject: [Ncr-Python.in] An easy sqlalchemy question In-Reply-To: References: Message-ID: No idea, how the orm works, i only use sqlalchemy expression api, that is enough abstraction i need on top of sql. But from past, i remember that you need to add reference to the related table. On Wed, Jun 26, 2013 at 10:58 PM, Amit Sethi wrote: > Chandrakant , Well that as I have described in the question did not work . > However explicitly declaring a Relation did . So currently I am going for > that but I just think that should have happened implicitly > > > On Wed, Jun 26, 2013 at 10:35 PM, chandrakant kumar > wrote: > >> If using expression api, it is, >> >> Column(Column_name, None, >> Foreignkey('reference_table.primary_key_column', onupdate='CASCADE', >> ondelete='CASCADE')) >> >> >> On Wed, Jun 26, 2013 at 9:43 PM, Gora Mohanty wrote: >> >>> On 26 June 2013 21:34, Amit Sethi wrote: >>> > Hi All , Please help answer what should actually have been a simple >>> problem >>> > with sqlalchemy. >>> > >>> > >>> http://stackoverflow.com/questions/17325006/how-to-create-a-foreignkey-reference-with-sqlalchemy >>> >>> Been a while since I have had reason to play >>> with SQLAlchemy, but surely this is explained >>> in http://docs.sqlalchemy.org/en/rel_0_8/orm/relationships.html >>> >>> Regards, >>> Gora >>> _______________________________________________ >>> http://mail.python.org/mailman/listinfo/ncr-python.in >>> Mailing list guidelines : >>> http://python.org.in/wiki/NcrPython/MailingListGuidelines >>> >> >> >> >> -- >> regards >> >> _______________________________________________ >> http://mail.python.org/mailman/listinfo/ncr-python.in >> Mailing list guidelines : >> http://python.org.in/wiki/NcrPython/MailingListGuidelines >> > > > > -- > A-M-I-T S|S > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : > http://python.org.in/wiki/NcrPython/MailingListGuidelines > -- regards -------------- next part -------------- An HTML attachment was scrubbed... URL: From abhinav.jha58 at gmail.com Thu Jun 27 20:21:20 2013 From: abhinav.jha58 at gmail.com (abhinav jha) Date: Thu, 27 Jun 2013 23:51:20 +0530 Subject: [Ncr-Python.in] Ncr-Python.in Digest, Vol 29, Issue 4 In-Reply-To: References: Message-ID: Sir, I want to ask u how to use for loops in python and please tell me the way how for loop works in python. Sir, please tell me how to frame a program in python. On 6/26/13, ncr-python.in-request at python.org wrote: > Send Ncr-Python.in mailing list submissions to > ncr-python.in at python.org > > To subscribe or unsubscribe via the World Wide Web, visit > http://mail.python.org/mailman/listinfo/ncr-python.in > or, via email, send a message with subject or body 'help' to > ncr-python.in-request at python.org > > You can reach the person managing the list at > ncr-python.in-owner at python.org > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Ncr-Python.in digest..." > > > Today's Topics: > > 1. An easy sqlalchemy question (Amit Sethi) > 2. Re: An easy sqlalchemy question (Gora Mohanty) > 3. Re: An easy sqlalchemy question (chandrakant kumar) > 4. Re: An easy sqlalchemy question (Amit Sethi) > 5. Re: An easy sqlalchemy question (chandrakant kumar) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 26 Jun 2013 21:34:00 +0530 > From: Amit Sethi > To: NCR Python Users Group India > Subject: [Ncr-Python.in] An easy sqlalchemy question > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Hi All , Please help answer what should actually have been a simple problem > with sqlalchemy. > > http://stackoverflow.com/questions/17325006/how-to-create-a-foreignkey-reference-with-sqlalchemy > > Thanks > Amit > > -- > A-M-I-T S|S > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > > ------------------------------ > > Message: 2 > Date: Wed, 26 Jun 2013 21:43:18 +0530 > From: Gora Mohanty > To: NCR Python Users Group India > Subject: Re: [Ncr-Python.in] An easy sqlalchemy question > Message-ID: > > Content-Type: text/plain; charset=ISO-8859-1 > > On 26 June 2013 21:34, Amit Sethi wrote: >> Hi All , Please help answer what should actually have been a simple >> problem >> with sqlalchemy. >> >> http://stackoverflow.com/questions/17325006/how-to-create-a-foreignkey-reference-with-sqlalchemy > > Been a while since I have had reason to play > with SQLAlchemy, but surely this is explained > in http://docs.sqlalchemy.org/en/rel_0_8/orm/relationships.html > > Regards, > Gora > > > ------------------------------ > > Message: 3 > Date: Wed, 26 Jun 2013 22:35:43 +0530 > From: chandrakant kumar > To: NCR Python Users Group India > Subject: Re: [Ncr-Python.in] An easy sqlalchemy question > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > If using expression api, it is, > > Column(Column_name, None, Foreignkey('reference_table.primary_key_column', > onupdate='CASCADE', ondelete='CASCADE')) > > > On Wed, Jun 26, 2013 at 9:43 PM, Gora Mohanty wrote: > >> On 26 June 2013 21:34, Amit Sethi wrote: >> > Hi All , Please help answer what should actually have been a simple >> problem >> > with sqlalchemy. >> > >> > >> http://stackoverflow.com/questions/17325006/how-to-create-a-foreignkey-reference-with-sqlalchemy >> >> Been a while since I have had reason to play >> with SQLAlchemy, but surely this is explained >> in http://docs.sqlalchemy.org/en/rel_0_8/orm/relationships.html >> >> Regards, >> Gora >> _______________________________________________ >> http://mail.python.org/mailman/listinfo/ncr-python.in >> Mailing list guidelines : >> http://python.org.in/wiki/NcrPython/MailingListGuidelines >> > > > > -- > regards > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > > ------------------------------ > > Message: 4 > Date: Wed, 26 Jun 2013 22:58:08 +0530 > From: Amit Sethi > To: NCR Python Users Group India > Subject: Re: [Ncr-Python.in] An easy sqlalchemy question > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > Chandrakant , Well that as I have described in the question did not work . > However explicitly declaring a Relation did . So currently I am going for > that but I just think that should have happened implicitly > > > On Wed, Jun 26, 2013 at 10:35 PM, chandrakant kumar > wrote: > >> If using expression api, it is, >> >> Column(Column_name, None, >> Foreignkey('reference_table.primary_key_column', >> onupdate='CASCADE', ondelete='CASCADE')) >> >> >> On Wed, Jun 26, 2013 at 9:43 PM, Gora Mohanty wrote: >> >>> On 26 June 2013 21:34, Amit Sethi wrote: >>> > Hi All , Please help answer what should actually have been a simple >>> problem >>> > with sqlalchemy. >>> > >>> > >>> http://stackoverflow.com/questions/17325006/how-to-create-a-foreignkey-reference-with-sqlalchemy >>> >>> Been a while since I have had reason to play >>> with SQLAlchemy, but surely this is explained >>> in http://docs.sqlalchemy.org/en/rel_0_8/orm/relationships.html >>> >>> Regards, >>> Gora >>> _______________________________________________ >>> http://mail.python.org/mailman/listinfo/ncr-python.in >>> Mailing list guidelines : >>> http://python.org.in/wiki/NcrPython/MailingListGuidelines >>> >> >> >> >> -- >> regards >> >> _______________________________________________ >> http://mail.python.org/mailman/listinfo/ncr-python.in >> Mailing list guidelines : >> http://python.org.in/wiki/NcrPython/MailingListGuidelines >> > > > > -- > A-M-I-T S|S > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > > ------------------------------ > > Message: 5 > Date: Wed, 26 Jun 2013 23:44:10 +0530 > From: chandrakant kumar > To: NCR Python Users Group India > Subject: Re: [Ncr-Python.in] An easy sqlalchemy question > Message-ID: > > Content-Type: text/plain; charset="iso-8859-1" > > No idea, how the orm works, i only use sqlalchemy expression api, that is > enough abstraction i need on top of sql. But from past, i remember that you > need to add reference to the related table. > > > On Wed, Jun 26, 2013 at 10:58 PM, Amit Sethi > wrote: > >> Chandrakant , Well that as I have described in the question did not work >> . >> However explicitly declaring a Relation did . So currently I am going for >> that but I just think that should have happened implicitly >> >> >> On Wed, Jun 26, 2013 at 10:35 PM, chandrakant kumar >> > > wrote: >> >>> If using expression api, it is, >>> >>> Column(Column_name, None, >>> Foreignkey('reference_table.primary_key_column', onupdate='CASCADE', >>> ondelete='CASCADE')) >>> >>> >>> On Wed, Jun 26, 2013 at 9:43 PM, Gora Mohanty >>> wrote: >>> >>>> On 26 June 2013 21:34, Amit Sethi wrote: >>>> > Hi All , Please help answer what should actually have been a simple >>>> problem >>>> > with sqlalchemy. >>>> > >>>> > >>>> http://stackoverflow.com/questions/17325006/how-to-create-a-foreignkey-reference-with-sqlalchemy >>>> >>>> Been a while since I have had reason to play >>>> with SQLAlchemy, but surely this is explained >>>> in http://docs.sqlalchemy.org/en/rel_0_8/orm/relationships.html >>>> >>>> Regards, >>>> Gora >>>> _______________________________________________ >>>> http://mail.python.org/mailman/listinfo/ncr-python.in >>>> Mailing list guidelines : >>>> http://python.org.in/wiki/NcrPython/MailingListGuidelines >>>> >>> >>> >>> >>> -- >>> regards >>> >>> _______________________________________________ >>> http://mail.python.org/mailman/listinfo/ncr-python.in >>> Mailing list guidelines : >>> http://python.org.in/wiki/NcrPython/MailingListGuidelines >>> >> >> >> >> -- >> A-M-I-T S|S >> >> _______________________________________________ >> http://mail.python.org/mailman/listinfo/ncr-python.in >> Mailing list guidelines : >> http://python.org.in/wiki/NcrPython/MailingListGuidelines >> > > > > -- > regards > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: > > > ------------------------------ > > Subject: Digest Footer > > _______________________________________________ > http://mail.python.org/mailman/listinfo/ncr-python.in > Mailing list guidelines : > http://python.org.in/wiki/NcrPython/MailingListGuidelines > > ------------------------------ > > End of Ncr-Python.in Digest, Vol 29, Issue 4 > ******************************************** > From gora at mimirtech.com Fri Jun 28 03:58:47 2013 From: gora at mimirtech.com (Gora Mohanty) Date: Fri, 28 Jun 2013 07:28:47 +0530 Subject: [Ncr-Python.in] Ncr-Python.in Digest, Vol 29, Issue 4 In-Reply-To: References: Message-ID: On 27 June 2013 23:51, abhinav jha wrote: > Sir, I want to ask u how to use for loops in python and please tell me > the way how for loop works in python. Sir, please tell me how to frame > a program in python. [...] To start with, when replying to a digest, at least trim the unwanted verbiage, and change the subject to a meaningful one. A mailing list is not the right forum for basic learning issues. Please take a look at the many Python tutorials/books available online: Personally, I like "Dive into Python", or maybe even take a short course. Then, you can ask more specific questions that people on the list can help you with. Regards, Gora